home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / editors / vi / nvi103.taz / nvi103
Tape Archive  |  1994-03-04  |  870.0 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: nvi103

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (old), directory nvi.1.03/, mode 040755, uid 003276, gid 000012, size 00000000000, seconds 05535646713, comment: 0 default
98% file data default
100% TrID TAR - Tape ARchive (directory) default
100% lsar Tar default
100% gt2 Kopftext: 'nvi.1.03/' default (weak)
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6e 76 69 2e 31 2e 30 33 | 2f 00 00 00 00 00 00 00 |nvi.1.03|/.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 30 34 30 37 | 35 35 00 00 30 30 33 32 |....0407|55..0032|
|00000070| 37 36 00 00 30 30 30 30 | 31 32 00 00 30 30 30 30 |76..0000|12..0000|
|00000080| 30 30 30 30 30 30 30 00 | 30 35 35 33 35 36 34 36 |0000000.|05535646|
|00000090| 37 31 33 00 30 31 30 30 | 30 33 00 20 35 00 00 00 |713.0100|03. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 20 20 20 20 20 30 00 | 00 77 6a 69 6e 00 00 00 |. 0.|.wjin...|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 6e 73 61 00 00 00 00 |........|.nsa....|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00000160| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6e 76 69 2e 31 2e 30 33 | 2f 64 6f 63 73 2f 00 00 |nvi.1.03|/docs/..|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 30 34 30 37 | 35 35 00 00 30 30 33 32 |....0407|55..0032|
|00000270| 37 36 00 00 30 30 30 30 | 31 32 00 00 30 30 30 30 |76..0000|12..0000|
|00000280| 30 30 30 30 30 30 30 00 | 30 35 35 33 35 36 34 36 |0000000.|05535646|
|00000290| 37 31 30 00 30 30 37 33 | 33 36 00 20 35 00 00 00 |710.0073|36. 5...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 20 20 20 20 20 30 00 | 00 00 00 00 00 00 00 00 |. 0.|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00000360| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 6e 76 69 2e 31 2e 30 33 | 2f 64 6f 63 73 2f 71 75 |nvi.1.03|/docs/qu|
|00000410| 6f 74 69 6e 67 00 00 00 | 00 00 00 00 00 00 00 00 |oting...|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 31 30 30 34 | 34 34 00 00 30 30 33 32 |....1004|44..0032|
|00000470| 37 36 00 00 30 30 30 30 | 31 32 00 00 30 30 30 30 |76..0000|12..0000|
|00000480| 30 30 31 36 35 33 33 00 | 30 35 34 33 35 32 30 30 |0016533.|05435200|
|00000490| 33 37 30 00 30 31 31 35 | 32 34 00 20 30 00 00 00 |370.0115|24. 0...|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 33 37 37 37 37 37 37 | 37 30 33 30 00 00 00 00 |.3777777|7030....|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00000560| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 23 09 40 28 23 29 71 75 | 6f 74 69 6e 67 09 35 2e |#.@(#)qu|oting.5.|
|00000610| 34 20 28 42 65 72 6b 65 | 6c 65 79 29 20 38 2f 32 |4 (Berke|ley) 8/2|
|00000620| 30 2f 39 33 0a 0a 51 55 | 4f 54 49 4e 47 20 49 4e |0/93..QU|OTING IN|
|00000630| 20 45 58 2f 56 49 3a 0a | 0a 54 68 65 72 65 20 61 | EX/VI:.|.There a|
|00000640| 72 65 20 74 77 6f 20 65 | 73 63 61 70 65 20 63 68 |re two e|scape ch|
|00000650| 61 72 61 63 74 65 72 73 | 20 69 6e 20 68 69 73 74 |aracters| in hist|
|00000660| 6f 72 69 63 20 65 78 2f | 76 69 2c 20 5e 56 20 28 |oric ex/|vi, ^V (|
|00000670| 6f 72 20 77 68 61 74 65 | 76 65 72 0a 63 68 61 72 |or whate|ver.char|
|00000680| 61 63 74 65 72 20 74 68 | 65 20 75 73 65 72 20 73 |acter th|e user s|
|00000690| 70 65 63 69 66 69 65 64 | 20 61 73 20 74 68 65 69 |pecified| as thei|
|000006a0| 72 20 6c 69 74 65 72 61 | 6c 20 6e 65 78 74 20 63 |r litera|l next c|
|000006b0| 68 61 72 61 63 74 65 72 | 29 20 61 6e 64 0a 62 61 |haracter|) and.ba|
|000006c0| 63 6b 73 6c 61 73 68 65 | 73 2e 20 20 54 68 65 72 |ckslashe|s. Ther|
|000006d0| 65 20 61 72 65 20 74 77 | 6f 20 64 69 66 66 65 72 |e are tw|o differ|
|000006e0| 65 6e 74 20 61 72 65 61 | 73 20 69 6e 20 65 78 2f |ent area|s in ex/|
|000006f0| 76 69 20 77 68 65 72 65 | 20 65 73 63 61 70 69 6e |vi where| escapin|
|00000700| 67 0a 69 73 20 69 6e 74 | 65 72 65 73 74 69 6e 67 |g.is int|eresting|
|00000710| 3a 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 61 6e |: the co|mmand an|
|00000720| 64 20 74 65 78 74 20 69 | 6e 70 75 74 20 6d 6f 64 |d text i|nput mod|
|00000730| 65 73 2c 20 61 6e 64 20 | 77 69 74 68 69 6e 20 74 |es, and |within t|
|00000740| 68 65 20 65 78 0a 63 6f | 6d 6d 61 6e 64 73 20 74 |he ex.co|mmands t|
|00000750| 68 65 6d 73 65 6c 76 65 | 73 2e 20 20 49 6e 20 74 |hemselve|s. In t|
|00000760| 68 65 20 65 78 61 6d 70 | 6c 65 73 20 62 65 6c 6f |he examp|les belo|
|00000770| 77 2c 20 5e 56 20 69 73 | 20 75 73 65 64 20 61 73 |w, ^V is| used as|
|00000780| 20 74 68 65 0a 74 79 70 | 69 63 61 6c 20 6c 69 74 | the.typ|ical lit|
|00000790| 65 72 61 6c 20 6e 65 78 | 74 20 63 68 61 72 61 63 |eral nex|t charac|
|000007a0| 74 65 72 2e 0a 0a 31 3a | 20 45 73 63 61 70 69 6e |ter...1:| Escapin|
|000007b0| 67 20 63 68 61 72 61 63 | 74 65 72 73 20 69 6e 20 |g charac|ters in |
|000007c0| 65 78 20 61 6e 64 20 76 | 69 20 63 6f 6d 6d 61 6e |ex and v|i comman|
|000007d0| 64 20 61 6e 64 20 74 65 | 78 74 20 69 6e 70 75 74 |d and te|xt input|
|000007e0| 20 6d 6f 64 65 73 2e 0a | 20 20 20 54 68 65 20 73 | modes..| The s|
|000007f0| 65 74 20 6f 66 20 63 68 | 61 72 61 63 74 65 72 73 |et of ch|aracters|
|00000800| 20 74 68 61 74 20 75 73 | 65 72 73 20 6d 69 67 68 | that us|ers migh|
|00000810| 74 20 77 61 6e 74 20 74 | 6f 20 65 73 63 61 70 65 |t want t|o escape|
|00000820| 20 61 72 65 20 61 73 0a | 20 20 20 66 6f 6c 6c 6f | are as.| follo|
|00000830| 77 73 3a 0a 0a 20 20 20 | 76 69 20 74 65 78 74 20 |ws:.. |vi text |
|00000840| 69 6e 70 75 74 20 6d 6f | 64 65 20 28 61 2c 20 69 |input mo|de (a, i|
|00000850| 2c 20 6f 2c 20 65 74 63 | 2e 29 3a 0a 0a 09 63 61 |, o, etc|.):...ca|
|00000860| 72 72 69 61 67 65 20 72 | 65 74 75 72 6e 20 28 5e |rriage r|eturn (^|
|00000870| 4d 29 0a 09 65 73 63 61 | 70 65 09 09 28 5e 5b 29 |M)..esca|pe..(^[)|
|00000880| 0a 09 61 75 74 6f 69 6e | 64 65 6e 74 20 63 68 61 |..autoin|dent cha|
|00000890| 72 61 63 74 65 72 73 0a | 09 09 09 28 5e 44 2c 20 |racters.|...(^D, |
|000008a0| 30 2c 20 5e 2c 20 5e 54 | 29 0a 09 65 72 61 73 65 |0, ^, ^T|)..erase|
|000008b0| 2c 20 77 6f 72 64 20 65 | 72 61 73 65 2c 20 61 6e |, word e|rase, an|
|000008c0| 64 20 6c 69 6e 65 20 65 | 72 61 73 65 0a 09 09 09 |d line e|rase....|
|000008d0| 28 5e 48 2c 20 5e 57 2c | 20 5e 55 29 0a 09 6e 65 |(^H, ^W,| ^U)..ne|
|000008e0| 77 6c 69 6e 65 09 09 28 | 5e 4a 29 09 09 09 28 6e |wline..(|^J)...(n|
|000008f0| 6f 74 20 68 69 73 74 6f | 72 69 63 20 70 72 61 63 |ot histo|ric prac|
|00000900| 74 69 63 65 29 0a 09 73 | 75 73 70 65 6e 64 09 09 |tice)..s|uspend..|
|00000910| 28 5e 5a 29 09 09 09 28 | 6e 6f 74 20 68 69 73 74 |(^Z)...(|not hist|
|00000920| 6f 72 69 63 20 70 72 61 | 63 74 69 63 65 29 0a 09 |oric pra|ctice)..|
|00000930| 72 65 70 61 69 6e 74 09 | 09 28 5e 4c 29 09 09 09 |repaint.|.(^L)...|
|00000940| 28 6e 6f 74 20 68 69 73 | 74 6f 72 69 63 20 70 72 |(not his|toric pr|
|00000950| 61 63 74 69 63 65 29 0a | 0a 20 20 20 76 69 20 63 |actice).|. vi c|
|00000960| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 20 28 3a 63 6f |ommand l|ine (:co|
|00000970| 6c 6f 6e 20 63 6f 6d 6d | 61 6e 64 73 29 3a 0a 0a |lon comm|ands):..|
|00000980| 09 63 61 72 72 69 61 67 | 65 20 72 65 74 75 72 6e |.carriag|e return|
|00000990| 20 28 5e 4d 29 0a 09 65 | 73 63 61 70 65 09 09 28 | (^M)..e|scape..(|
|000009a0| 5e 5b 29 0a 09 65 72 61 | 73 65 2c 20 77 6f 72 64 |^[)..era|se, word|
|000009b0| 20 65 72 61 73 65 2c 20 | 61 6e 64 20 6c 69 6e 65 | erase, |and line|
|000009c0| 20 65 72 61 73 65 0a 09 | 09 09 28 5e 48 2c 20 5e | erase..|..(^H, ^|
|000009d0| 57 2c 20 5e 55 29 0a 09 | 6e 65 77 6c 69 6e 65 09 |W, ^U)..|newline.|
|000009e0| 09 28 5e 4a 29 09 09 09 | 28 6e 6f 74 20 68 69 73 |.(^J)...|(not his|
|000009f0| 74 6f 72 69 63 20 70 72 | 61 63 74 69 63 65 29 0a |toric pr|actice).|
|00000a00| 09 73 75 73 70 65 6e 64 | 09 09 28 5e 5a 29 09 09 |.suspend|..(^Z)..|
|00000a10| 09 28 6e 6f 74 20 68 69 | 73 74 6f 72 69 63 20 70 |.(not hi|storic p|
|00000a20| 72 61 63 74 69 63 65 29 | 0a 09 72 65 70 61 69 6e |ractice)|..repain|
|00000a30| 74 09 09 28 5e 4c 29 09 | 09 09 28 6e 6f 74 20 68 |t..(^L).|..(not h|
|00000a40| 69 73 74 6f 72 69 63 20 | 70 72 61 63 74 69 63 65 |istoric |practice|
|00000a50| 29 0a 0a 20 20 20 65 78 | 20 74 65 78 74 20 69 6e |).. ex| text in|
|00000a60| 70 75 74 20 6d 6f 64 65 | 20 28 61 2c 20 69 2c 20 |put mode| (a, i, |
|00000a70| 6f 2c 20 65 74 63 2e 29 | 3a 0a 0a 09 63 61 72 72 |o, etc.)|:...carr|
|00000a80| 69 61 67 65 20 72 65 74 | 75 72 6e 20 28 5e 4d 29 |iage ret|urn (^M)|
|00000a90| 0a 09 65 72 61 73 65 2c | 20 77 6f 72 64 20 65 72 |..erase,| word er|
|00000aa0| 61 73 65 2c 20 61 6e 64 | 20 6c 69 6e 65 20 65 72 |ase, and| line er|
|00000ab0| 61 73 65 0a 09 09 09 28 | 5e 48 2c 20 5e 57 2c 20 |ase....(|^H, ^W, |
|00000ac0| 5e 55 29 0a 09 6e 65 77 | 6c 69 6e 65 09 09 28 5e |^U)..new|line..(^|
|00000ad0| 4a 29 09 09 09 28 6e 6f | 74 20 68 69 73 74 6f 72 |J)...(no|t histor|
|00000ae0| 69 63 20 70 72 61 63 74 | 69 63 65 29 0a 0a 20 20 |ic pract|ice).. |
|00000af0| 20 65 78 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 | ex comm|and line|
|00000b00| 3a 0a 0a 09 63 61 72 72 | 69 61 67 65 20 72 65 74 |:...carr|iage ret|
|00000b10| 75 72 6e 20 28 5e 4d 29 | 0a 09 65 72 61 73 65 2c |urn (^M)|..erase,|
|00000b20| 20 77 6f 72 64 20 65 72 | 61 73 65 2c 20 61 6e 64 | word er|ase, and|
|00000b30| 20 6c 69 6e 65 20 65 72 | 61 73 65 0a 09 09 09 28 | line er|ase....(|
|00000b40| 5e 48 2c 20 5e 57 2c 20 | 5e 55 29 0a 09 6e 65 77 |^H, ^W, |^U)..new|
|00000b50| 6c 69 6e 65 09 09 28 5e | 4a 29 09 09 09 28 6e 6f |line..(^|J)...(no|
|00000b60| 74 20 68 69 73 74 6f 72 | 69 63 20 70 72 61 63 74 |t histor|ic pract|
|00000b70| 69 63 65 29 0a 09 73 75 | 73 70 65 6e 64 09 09 28 |ice)..su|spend..(|
|00000b80| 5e 5a 29 0a 0a 20 20 20 | 49 20 69 6e 74 65 6e 64 |^Z).. |I intend|
|00000b90| 20 74 6f 20 66 6f 6c 6c | 6f 77 20 68 69 73 74 6f | to foll|ow histo|
|00000ba0| 72 69 63 20 70 72 61 63 | 74 69 63 65 20 66 6f 72 |ric prac|tice for|
|00000bb0| 20 61 6c 6c 20 6f 66 20 | 74 68 65 73 65 20 63 61 | all of |these ca|
|00000bc0| 73 65 73 2c 20 77 68 69 | 63 68 0a 20 20 20 77 61 |ses, whi|ch. wa|
|00000bd0| 73 20 74 68 61 74 20 5e | 56 20 77 61 73 20 74 68 |s that ^|V was th|
|00000be0| 65 20 6f 6e 6c 79 20 77 | 61 79 20 74 6f 20 65 73 |e only w|ay to es|
|00000bf0| 63 61 70 65 20 61 6e 79 | 20 6f 66 20 74 68 65 73 |cape any| of thes|
|00000c00| 65 20 63 68 61 72 61 63 | 74 65 72 73 2c 20 61 6e |e charac|ters, an|
|00000c10| 64 0a 20 20 20 74 68 61 | 74 20 77 68 61 74 65 76 |d. tha|t whatev|
|00000c20| 65 72 20 63 68 61 72 61 | 63 74 65 72 20 66 6f 6c |er chara|cter fol|
|00000c30| 6c 6f 77 65 64 20 74 68 | 65 20 5e 56 20 77 61 73 |lowed th|e ^V was|
|00000c40| 20 74 61 6b 65 6e 20 6c | 69 74 65 72 61 6c 6c 79 | taken l|iterally|
|00000c50| 2c 20 69 2e 65 2e 0a 20 | 20 20 5e 56 5e 56 20 69 |, i.e.. | ^V^V i|
|00000c60| 73 20 61 20 73 69 6e 67 | 6c 65 20 5e 56 2e 0a 0a |s a sing|le ^V...|
|00000c70| 20 20 20 54 68 65 20 68 | 69 73 74 6f 72 69 63 20 | The h|istoric |
|00000c80| 65 78 2f 76 69 20 64 69 | 73 61 6c 6c 6f 77 65 64 |ex/vi di|sallowed|
|00000c90| 20 74 68 65 20 69 6e 73 | 65 72 74 69 6f 6e 20 6f | the ins|ertion o|
|00000ca0| 66 20 76 61 72 69 6f 75 | 73 20 63 6f 6e 74 72 6f |f variou|s contro|
|00000cb0| 6c 0a 20 20 20 63 68 61 | 72 61 63 74 65 72 73 20 |l. cha|racters |
|00000cc0| 28 5e 44 2c 20 5e 54 2c | 20 77 68 61 74 65 76 65 |(^D, ^T,| whateve|
|00000cd0| 72 29 20 64 75 72 69 6e | 67 20 76 61 72 69 6f 75 |r) durin|g variou|
|00000ce0| 73 20 64 69 66 66 65 72 | 65 6e 74 20 6d 6f 64 65 |s differ|ent mode|
|00000cf0| 73 2c 20 6f 72 2c 0a 20 | 20 20 70 65 72 6d 69 74 |s, or,. | permit|
|00000d00| 74 65 64 20 74 68 65 20 | 69 6e 73 65 72 74 69 6f |ted the |insertio|
|00000d10| 6e 20 6f 66 20 6f 6e 6c | 79 20 61 20 73 69 6e 67 |n of onl|y a sing|
|00000d20| 6c 65 20 6f 6e 65 2c 20 | 6f 72 20 6c 6f 74 73 20 |le one, |or lots |
|00000d30| 6f 66 20 6f 74 68 65 72 | 20 72 61 6e 64 6f 6d 0a |of other| random.|
|00000d40| 20 20 20 62 65 68 61 76 | 69 6f 72 73 20 28 79 6f | behav|iors (yo|
|00000d50| 75 20 63 61 6e 20 75 73 | 65 20 5e 44 20 74 6f 20 |u can us|e ^D to |
|00000d60| 65 6e 74 65 72 20 61 20 | 63 6f 6d 6d 61 6e 64 20 |enter a |command |
|00000d70| 69 6e 20 65 78 29 2e 20 | 20 49 20 68 61 76 65 0a |in ex). | I have.|
|00000d80| 20 20 20 72 65 67 75 6c | 61 72 69 7a 65 64 20 74 | regul|arized t|
|00000d90| 68 69 73 20 62 65 68 61 | 76 69 6f 72 20 69 6e 20 |his beha|vior in |
|00000da0| 6e 76 69 2c 20 74 68 65 | 72 65 20 61 72 65 20 6e |nvi, the|re are n|
|00000db0| 6f 20 63 68 61 72 61 63 | 74 65 72 73 20 74 68 61 |o charac|ters tha|
|00000dc0| 74 20 63 61 6e 6e 6f 74 | 0a 20 20 20 62 65 20 65 |t cannot|. be e|
|00000dd0| 6e 74 65 72 65 64 20 6f | 72 20 77 68 69 63 68 20 |ntered o|r which |
|00000de0| 68 61 76 65 20 73 70 65 | 63 69 61 6c 20 6d 65 61 |have spe|cial mea|
|00000df0| 6e 69 6e 67 20 6f 74 68 | 65 72 20 74 68 61 6e 20 |ning oth|er than |
|00000e00| 74 68 65 20 6f 6e 65 73 | 20 6c 69 73 74 65 64 0a |the ones| listed.|
|00000e10| 20 20 20 61 62 6f 76 65 | 2e 0a 0a 20 20 20 4f 6e | above|... On|
|00000e20| 65 20 63 6f 6d 6d 65 6e | 74 20 72 65 67 61 72 64 |e commen|t regard|
|00000e30| 69 6e 67 20 74 68 65 20 | 61 75 74 6f 69 6e 64 65 |ing the |autoinde|
|00000e40| 6e 74 20 63 68 61 72 61 | 63 74 65 72 73 2e 20 20 |nt chara|cters. |
|00000e50| 49 6e 20 68 69 73 74 6f | 72 69 63 20 76 69 2c 0a |In histo|ric vi,.|
|00000e60| 20 20 20 69 66 20 79 6f | 75 20 65 6e 74 65 72 65 | if yo|u entere|
|00000e70| 64 20 22 5e 56 30 5e 44 | 22 20 61 75 74 6f 69 6e |d "^V0^D|" autoin|
|00000e80| 64 65 6e 74 20 65 72 61 | 73 75 72 65 20 77 61 73 |dent era|sure was|
|00000e90| 20 73 74 69 6c 6c 20 74 | 72 69 67 67 65 72 65 64 | still t|riggered|
|00000ea0| 2c 0a 20 20 20 61 6c 74 | 68 6f 75 67 68 20 69 74 |,. alt|hough it|
|00000eb0| 20 77 61 73 6e 27 74 20 | 69 66 20 79 6f 75 20 65 | wasn't |if you e|
|00000ec0| 6e 74 65 72 65 64 20 22 | 30 5e 56 5e 44 22 2e 20 |ntered "|0^V^D". |
|00000ed0| 20 49 6e 20 6e 76 69 2c | 20 69 66 20 79 6f 75 20 | In nvi,| if you |
|00000ee0| 65 73 63 61 70 65 0a 20 | 20 20 65 69 74 68 65 72 |escape. | either|
|00000ef0| 20 63 68 61 72 61 63 74 | 65 72 2c 20 61 75 74 6f | charact|er, auto|
|00000f00| 69 6e 64 65 6e 74 20 65 | 72 61 73 75 72 65 20 69 |indent e|rasure i|
|00000f10| 73 20 6e 6f 74 20 74 72 | 69 67 67 65 72 65 64 2e |s not tr|iggered.|
|00000f20| 0a 0a 20 20 20 54 68 69 | 73 20 64 6f 65 73 6e 27 |.. Thi|s doesn'|
|00000f30| 74 20 70 65 72 6d 69 74 | 20 77 68 69 74 65 73 70 |t permit| whitesp|
|00000f40| 61 63 65 20 69 6e 20 63 | 6f 6d 6d 61 6e 64 20 6e |ace in c|ommand n|
|00000f50| 61 6d 65 73 2c 20 62 75 | 74 20 74 68 61 74 20 77 |ames, bu|t that w|
|00000f60| 61 73 6e 27 74 0a 20 20 | 20 68 69 73 74 6f 72 69 |asn't. | histori|
|00000f70| 63 20 70 72 61 63 74 69 | 63 65 20 61 6e 64 20 64 |c practi|ce and d|
|00000f80| 6f 65 73 6e 27 74 20 73 | 65 65 6d 20 77 6f 72 74 |oesn't s|eem wort|
|00000f90| 68 20 64 6f 69 6e 67 2e | 0a 0a 20 20 20 46 75 6e |h doing.|.. Fun|
|00000fa0| 20 66 61 63 74 73 20 74 | 6f 20 6b 6e 6f 77 20 61 | facts t|o know a|
|00000fb0| 6e 64 20 74 65 6c 6c 3a | 0a 09 20 20 20 54 68 65 |nd tell:|.. The|
|00000fc0| 20 68 69 73 74 6f 72 69 | 63 20 76 69 20 69 6d 70 | histori|c vi imp|
|00000fd0| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 20 66 6f 72 20 |lementat|ion for |
|00000fe0| 74 68 65 20 27 72 27 20 | 63 6f 6d 6d 61 6e 64 20 |the 'r' |command |
|00000ff0| 72 65 71 75 69 72 65 73 | 0a 09 20 20 20 2a 74 68 |requires|.. *th|
|00001000| 72 65 65 2a 20 5e 56 27 | 73 20 74 6f 20 72 65 70 |ree* ^V'|s to rep|
|00001010| 6c 61 63 65 20 61 20 73 | 69 6e 67 6c 65 20 63 68 |lace a s|ingle ch|
|00001020| 61 72 61 63 74 65 72 20 | 77 69 74 68 20 5e 56 2e |aracter |with ^V.|
|00001030| 0a 0a 32 3a 20 45 78 20 | 63 6f 6d 6d 61 6e 64 73 |..2: Ex |commands|
|00001040| 3a 0a 0a 20 20 20 45 78 | 20 63 6f 6d 6d 61 6e 64 |:.. Ex| command|
|00001050| 73 20 61 72 65 20 64 65 | 6c 69 6d 69 74 65 64 20 |s are de|limited |
|00001060| 62 79 20 27 7c 27 20 6f | 72 20 6e 65 77 6c 69 6e |by '|' o|r newlin|
|00001070| 65 20 63 68 61 72 61 63 | 74 65 72 73 2e 20 20 57 |e charac|ters. W|
|00001080| 69 74 68 69 6e 0a 20 20 | 20 74 68 65 20 63 6f 6d |ithin. | the com|
|00001090| 6d 61 6e 64 73 2c 20 77 | 68 69 74 65 73 70 61 63 |mands, w|hitespac|
|000010a0| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 64 65 6c |e charac|ters del|
|000010b0| 69 6d 69 74 20 74 68 65 | 20 61 72 67 75 6d 65 6e |imit the| argumen|
|000010c0| 74 73 2e 0a 0a 20 20 20 | 49 20 69 6e 74 65 6e 64 |ts... |I intend|
|000010d0| 20 74 6f 20 74 72 65 61 | 74 20 5e 56 2c 20 66 6f | to trea|t ^V, fo|
|000010e0| 6c 6c 6f 77 65 64 20 62 | 79 20 61 6e 79 20 63 68 |llowed b|y any ch|
|000010f0| 61 72 61 63 74 65 72 2c | 20 61 73 20 74 68 61 74 |aracter,| as that|
|00001100| 20 6c 69 74 65 72 61 6c | 0a 20 20 20 63 68 61 72 | literal|. char|
|00001110| 61 63 74 65 72 2e 0a 0a | 20 20 20 54 68 69 73 20 |acter...| This |
|00001120| 69 73 20 68 69 73 74 6f | 72 69 63 20 62 65 68 61 |is histo|ric beha|
|00001130| 76 69 6f 72 20 69 6e 20 | 76 69 2c 20 61 6c 74 68 |vior in |vi, alth|
|00001140| 6f 75 67 68 20 74 68 65 | 72 65 20 61 72 65 20 73 |ough the|re are s|
|00001150| 70 65 63 69 61 6c 0a 20 | 20 20 63 61 73 65 73 20 |pecial. | cases |
|00001160| 77 68 65 72 65 20 69 74 | 27 73 20 69 6d 70 6f 73 |where it|'s impos|
|00001170| 73 69 62 6c 65 20 74 6f | 20 65 73 63 61 70 65 20 |sible to| escape |
|00001180| 61 20 63 68 61 72 61 63 | 74 65 72 2c 20 67 65 6e |a charac|ter, gen|
|00001190| 65 72 61 6c 6c 79 0a 20 | 20 20 61 20 77 68 69 74 |erally. | a whit|
|000011a0| 65 73 70 61 63 65 20 63 | 68 61 72 61 63 74 65 72 |espace c|haracter|
|000011b0| 2e 0a 0a 33 3a 20 45 73 | 63 61 70 69 6e 67 20 63 |...3: Es|caping c|
|000011c0| 68 61 72 61 63 74 65 72 | 73 20 69 6e 20 66 69 6c |haracter|s in fil|
|000011d0| 65 20 6e 61 6d 65 73 20 | 69 6e 20 65 78 20 63 6f |e names |in ex co|
|000011e0| 6d 6d 61 6e 64 73 3a 0a | 0a 09 3a 63 64 20 5b 64 |mmands:.|..:cd [d|
|000011f0| 69 72 65 63 74 6f 72 79 | 5d 09 09 09 09 28 64 69 |irectory|]....(di|
|00001200| 72 65 63 74 6f 72 79 29 | 0a 09 3a 63 68 64 69 72 |rectory)|..:chdir|
|00001210| 20 5b 64 69 72 65 63 74 | 6f 72 79 5d 09 09 09 28 | [direct|ory]...(|
|00001220| 64 69 72 65 63 74 6f 72 | 79 29 0a 09 3a 65 64 69 |director|y)..:edi|
|00001230| 74 20 5b 2b 63 6d 64 5d | 20 5b 66 69 6c 65 5d 09 |t [+cmd]| [file].|
|00001240| 09 09 28 66 69 6c 65 29 | 0a 09 3a 65 78 20 5b 2b |..(file)|..:ex [+|
|00001250| 63 6d 64 5d 20 5b 66 69 | 6c 65 5d 09 09 09 28 66 |cmd] [fi|le]...(f|
|00001260| 69 6c 65 29 0a 09 3a 66 | 69 6c 65 20 5b 66 69 6c |ile)..:f|ile [fil|
|00001270| 65 5d 09 09 09 09 28 66 | 69 6c 65 29 0a 09 3a 6e |e]....(f|ile)..:n|
|00001280| 65 78 74 20 5b 66 69 6c | 65 20 2e 2e 2e 5d 09 09 |ext [fil|e ...]..|
|00001290| 09 28 66 69 6c 65 20 2e | 2e 2e 29 0a 09 3a 72 65 |.(file .|..)..:re|
|000012a0| 61 64 20 5b 21 63 6d 64 | 20 7c 20 66 69 6c 65 5d |ad [!cmd| | file]|
|000012b0| 09 09 09 28 66 69 6c 65 | 29 0a 09 3a 73 6f 75 72 |...(file|)..:sour|
|000012c0| 63 65 20 5b 66 69 6c 65 | 5d 09 09 09 09 28 66 69 |ce [file|]....(fi|
|000012d0| 6c 65 29 0a 09 3a 77 72 | 69 74 65 20 5b 21 63 6d |le)..:wr|ite [!cm|
|000012e0| 64 20 7c 20 66 69 6c 65 | 5d 09 09 09 28 66 69 6c |d | file|]...(fil|
|000012f0| 65 29 0a 09 3a 77 71 20 | 5b 66 69 6c 65 5d 09 09 |e)..:wq |[file]..|
|00001300| 09 09 28 66 69 6c 65 29 | 0a 09 3a 78 69 74 20 5b |..(file)|..:xit [|
|00001310| 66 69 6c 65 5d 09 09 09 | 09 28 66 69 6c 65 29 0a |file]...|.(file).|
|00001320| 0a 20 20 20 49 20 69 6e | 74 65 6e 64 20 74 6f 20 |. I in|tend to |
|00001330| 74 72 65 61 74 20 61 20 | 62 61 63 6b 73 6c 61 73 |treat a |backslas|
|00001340| 68 20 69 6e 20 61 20 66 | 69 6c 65 20 6e 61 6d 65 |h in a f|ile name|
|00001350| 2c 20 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 61 6e |, follow|ed by an|
|00001360| 79 0a 20 20 20 63 68 61 | 72 61 63 74 65 72 2c 20 |y. cha|racter, |
|00001370| 61 73 20 74 68 61 74 20 | 6c 69 74 65 72 61 6c 20 |as that |literal |
|00001380| 63 68 61 72 61 63 74 65 | 72 2e 0a 0a 20 20 20 54 |characte|r... T|
|00001390| 68 69 73 20 69 73 20 68 | 69 73 74 6f 72 69 63 20 |his is h|istoric |
|000013a0| 62 65 68 61 76 69 6f 72 | 20 69 6e 20 76 69 2e 0a |behavior| in vi..|
|000013b0| 0a 20 20 20 49 6e 20 61 | 64 64 69 74 69 6f 6e 2c |. In a|ddition,|
|000013c0| 20 73 69 6e 63 65 20 66 | 69 6c 65 20 6e 61 6d 65 | since f|ile name|
|000013d0| 73 20 61 72 65 20 61 6c | 73 6f 20 73 75 62 6a 65 |s are al|so subje|
|000013e0| 63 74 20 74 6f 20 77 6f | 72 64 20 65 78 70 61 6e |ct to wo|rd expan|
|000013f0| 73 69 6f 6e 2c 0a 20 20 | 20 74 68 65 20 72 75 6c |sion,. | the rul|
|00001400| 65 73 20 66 6f 72 20 65 | 73 63 61 70 65 20 63 68 |es for e|scape ch|
|00001410| 61 72 61 63 74 65 72 73 | 20 69 6e 20 73 65 63 74 |aracters| in sect|
|00001420| 69 6f 6e 20 33 20 6f 66 | 20 74 68 69 73 20 64 6f |ion 3 of| this do|
|00001430| 63 75 6d 65 6e 74 20 61 | 6c 73 6f 0a 20 20 20 61 |cument a|lso. a|
|00001440| 70 70 6c 79 2e 20 20 54 | 68 69 73 20 69 73 20 4e |pply. T|his is N|
|00001450| 4f 54 20 68 69 73 74 6f | 72 69 63 20 62 65 68 61 |OT histo|ric beha|
|00001460| 76 69 6f 72 20 69 6e 20 | 76 69 2c 20 6d 61 6b 69 |vior in |vi, maki|
|00001470| 6e 67 20 69 74 20 69 6d | 70 6f 73 73 69 62 6c 65 |ng it im|possible|
|00001480| 0a 20 20 20 74 6f 20 69 | 6e 73 65 72 74 20 61 20 |. to i|nsert a |
|00001490| 77 68 69 74 65 73 70 61 | 63 65 2c 20 6e 65 77 6c |whitespa|ce, newl|
|000014a0| 69 6e 65 20 6f 72 20 63 | 61 72 72 69 61 67 65 20 |ine or c|arriage |
|000014b0| 72 65 74 75 72 6e 20 63 | 68 61 72 61 63 74 65 72 |return c|haracter|
|000014c0| 20 69 6e 74 6f 0a 20 20 | 20 61 20 66 69 6c 65 20 | into. | a file |
|000014d0| 6e 61 6d 65 2e 20 20 54 | 68 69 73 20 63 68 61 6e |name. T|his chan|
|000014e0| 67 65 20 63 6f 75 6c 64 | 20 63 61 75 73 65 20 61 |ge could| cause a|
|000014f0| 20 70 72 6f 62 6c 65 6d | 20 69 66 20 74 68 65 72 | problem| if ther|
|00001500| 65 20 77 65 72 65 20 66 | 69 6c 65 73 0a 20 20 20 |e were f|iles. |
|00001510| 77 69 74 68 20 5e 56 27 | 73 20 69 6e 20 74 68 65 |with ^V'|s in the|
|00001520| 69 72 20 6e 61 6d 65 73 | 2c 20 62 75 74 20 49 20 |ir names|, but I |
|00001530| 74 68 69 6e 6b 20 74 68 | 61 74 27 73 20 75 6e 6c |think th|at's unl|
|00001540| 69 6b 65 6c 79 2e 0a 0a | 34 3a 20 45 73 63 61 70 |ikely...|4: Escap|
|00001550| 69 6e 67 20 63 68 61 72 | 61 63 74 65 72 73 20 69 |ing char|acters i|
|00001560| 6e 20 6e 6f 6e 2d 66 69 | 6c 65 20 61 72 67 75 6d |n non-fi|le argum|
|00001570| 65 6e 74 73 20 69 6e 20 | 65 78 20 63 6f 6d 6d 61 |ents in |ex comma|
|00001580| 6e 64 73 3a 0a 0a 09 3a | 61 62 62 72 65 76 69 61 |nds:...:|abbrevia|
|00001590| 74 65 20 77 6f 72 64 20 | 73 74 72 69 6e 67 09 09 |te word |string..|
|000015a0| 09 28 77 6f 72 64 2c 20 | 73 74 72 69 6e 67 29 0a |.(word, |string).|
|000015b0| 2a 09 3a 65 64 69 74 20 | 5b 2b 63 6d 64 5d 20 5b |*.:edit |[+cmd] [|
|000015c0| 66 69 6c 65 5d 09 09 09 | 28 2b 63 6d 64 29 0a 2a |file]...|(+cmd).*|
|000015d0| 09 3a 65 78 20 5b 2b 63 | 6d 64 5d 20 5b 66 69 6c |.:ex [+c|md] [fil|
|000015e0| 65 5d 09 09 09 28 2b 63 | 6d 64 29 0a 09 3a 6b 20 |e]...(+c|md)..:k |
|000015f0| 6b 65 79 09 09 09 09 09 | 28 6b 65 79 29 0a 09 3a |key.....|(key)..:|
|00001600| 6d 61 70 20 77 6f 72 64 | 20 73 74 72 69 6e 67 09 |map word| string.|
|00001610| 09 09 28 77 6f 72 64 2c | 20 73 74 72 69 6e 67 29 |..(word,| string)|
|00001620| 0a 09 3a 6d 61 72 6b 20 | 6b 65 79 09 09 09 09 28 |..:mark |key....(|
|00001630| 6b 65 79 29 0a 2a 09 3a | 73 65 74 20 5b 6f 70 74 |key).*.:|set [opt|
|00001640| 69 6f 6e 20 2e 2e 2e 5d | 09 09 09 28 6f 70 74 69 |ion ...]|...(opti|
|00001650| 6f 6e 29 0a 2a 09 3a 74 | 61 67 20 73 74 72 69 6e |on).*.:t|ag strin|
|00001660| 67 09 09 09 09 28 73 74 | 72 69 6e 67 29 0a 09 3a |g....(st|ring)..:|
|00001670| 75 6e 61 62 62 72 65 76 | 69 61 74 65 20 77 6f 72 |unabbrev|iate wor|
|00001680| 64 09 09 09 28 77 6f 72 | 64 29 0a 09 3a 75 6e 6d |d...(wor|d)..:unm|
|00001690| 61 70 20 77 6f 72 64 09 | 09 09 09 28 77 6f 72 64 |ap word.|...(word|
|000016a0| 29 0a 0a 20 20 20 54 68 | 65 73 65 20 63 6f 6d 6d |).. Th|ese comm|
|000016b0| 61 6e 64 73 20 75 73 65 | 20 77 68 69 74 65 73 70 |ands use| whitesp|
|000016c0| 61 63 65 20 74 6f 20 64 | 65 6c 69 6d 69 74 20 74 |ace to d|elimit t|
|000016d0| 68 65 69 72 20 61 72 67 | 75 6d 65 6e 74 73 2c 20 |heir arg|uments, |
|000016e0| 61 6e 64 20 75 73 65 0a | 20 20 20 5e 56 20 74 6f |and use.| ^V to|
|000016f0| 20 65 73 63 61 70 65 20 | 74 68 6f 73 65 20 63 68 | escape |those ch|
|00001700| 61 72 61 63 74 65 72 73 | 2e 20 20 54 68 65 20 65 |aracters|. The e|
|00001710| 78 63 65 70 74 69 6f 6e | 73 20 61 72 65 20 73 74 |xception|s are st|
|00001720| 61 72 72 65 64 20 69 6e | 20 74 68 65 0a 20 20 20 |arred in| the. |
|00001730| 61 62 6f 76 65 20 6c 69 | 73 74 2c 20 61 6e 64 20 |above li|st, and |
|00001740| 61 72 65 20 64 69 73 63 | 75 73 73 65 64 20 62 65 |are disc|ussed be|
|00001750| 6c 6f 77 2e 0a 0a 20 20 | 20 49 6e 20 67 65 6e 65 |low... | In gene|
|00001760| 72 61 6c 2c 20 49 20 69 | 6e 74 65 6e 64 20 74 6f |ral, I i|ntend to|
|00001770| 20 74 72 65 61 74 20 61 | 20 5e 56 20 69 6e 20 61 | treat a| ^V in a|
|00001780| 6e 79 20 61 72 67 75 6d | 65 6e 74 2c 20 66 6f 6c |ny argum|ent, fol|
|00001790| 6c 6f 77 65 64 20 62 79 | 0a 20 20 20 61 6e 79 20 |lowed by|. any |
|000017a0| 63 68 61 72 61 63 74 65 | 72 2c 20 61 73 20 74 68 |characte|r, as th|
|000017b0| 61 74 20 6c 69 74 65 72 | 61 6c 20 63 68 61 72 61 |at liter|al chara|
|000017c0| 63 74 65 72 2e 20 20 54 | 68 69 73 20 77 69 6c 6c |cter. T|his will|
|000017d0| 20 70 65 72 6d 69 74 0a | 20 20 20 65 64 69 74 69 | permit.| editi|
|000017e0| 6e 67 20 6f 66 20 66 69 | 6c 65 73 20 6e 61 6d 65 |ng of fi|les name|
|000017f0| 20 22 66 6f 6f 7c 22 2c | 20 66 6f 72 20 65 78 61 | "foo|",| for exa|
|00001800| 6d 70 6c 65 2c 20 62 79 | 20 75 73 69 6e 67 20 74 |mple, by| using t|
|00001810| 68 65 20 73 74 72 69 6e | 67 0a 20 20 20 22 66 6f |he strin|g. "fo|
|00001820| 6f 5c 5e 56 7c 22 2c 20 | 77 68 65 72 65 20 74 68 |o\^V|", |where th|
|00001830| 65 20 6c 69 74 65 72 61 | 6c 20 6e 65 78 74 20 63 |e litera|l next c|
|00001840| 68 61 72 61 63 74 65 72 | 20 70 72 6f 74 65 63 74 |haracter| protect|
|00001850| 73 20 74 68 65 20 70 69 | 70 65 0a 20 20 20 66 72 |s the pi|pe. fr|
|00001860| 6f 6d 20 74 68 65 20 65 | 78 20 63 6f 6d 6d 61 6e |om the e|x comman|
|00001870| 64 20 70 61 72 73 65 72 | 20 61 6e 64 20 74 68 65 |d parser| and the|
|00001880| 20 62 61 63 6b 73 6c 61 | 73 68 20 70 72 6f 74 65 | backsla|sh prote|
|00001890| 63 74 73 20 69 74 20 66 | 72 6f 6d 20 74 68 65 0a |cts it f|rom the.|
|000018a0| 20 20 20 73 68 65 6c 6c | 20 65 78 70 61 6e 73 69 | shell| expansi|
|000018b0| 6f 6e 2e 0a 0a 20 20 20 | 54 68 69 73 20 69 73 20 |on... |This is |
|000018c0| 62 61 63 6b 77 61 72 64 | 20 63 6f 6d 70 61 74 69 |backward| compati|
|000018d0| 62 6c 65 20 77 69 74 68 | 20 68 69 73 74 6f 72 69 |ble with| histori|
|000018e0| 63 61 6c 20 76 69 2c 20 | 61 6c 74 68 6f 75 67 68 |cal vi, |although|
|000018f0| 20 74 68 65 72 65 0a 20 | 20 20 77 65 72 65 20 61 | there. | were a|
|00001900| 20 6e 75 6d 62 65 72 20 | 6f 66 20 73 70 65 63 69 | number |of speci|
|00001910| 61 6c 20 63 61 73 65 73 | 20 77 68 65 72 65 20 76 |al cases| where v|
|00001920| 69 20 77 61 73 6e 27 74 | 20 63 6f 6e 73 69 73 74 |i wasn't| consist|
|00001930| 65 6e 74 2e 0a 0a 34 2e | 31 3a 20 54 68 65 20 65 |ent...4.|1: The e|
|00001940| 64 69 74 2f 65 78 20 63 | 6f 6d 6d 61 6e 64 73 3a |dit/ex c|ommands:|
|00001950| 0a 0a 20 20 20 54 68 65 | 20 65 64 69 74 2f 65 78 |.. The| edit/ex|
|00001960| 20 63 6f 6d 6d 61 6e 64 | 73 20 61 72 65 20 61 20 | command|s are a |
|00001970| 73 70 65 63 69 61 6c 20 | 63 61 73 65 20 62 65 63 |special |case bec|
|00001980| 61 75 73 65 20 7c 20 73 | 79 6d 62 6f 6c 73 20 6d |ause | s|ymbols m|
|00001990| 61 79 0a 20 20 20 6f 63 | 63 75 72 20 69 6e 20 74 |ay. oc|cur in t|
|000019a0| 68 65 20 22 2b 63 6d 64 | 22 20 66 69 65 6c 64 2c |he "+cmd|" field,|
|000019b0| 20 66 6f 72 20 65 78 61 | 6d 70 6c 65 3a 0a 0a 09 | for exa|mple:...|
|000019c0| 3a 65 64 69 74 20 2b 31 | 30 7c 73 2f 61 62 63 2f |:edit +1|0|s/abc/|
|000019d0| 41 42 43 2f 20 66 69 6c | 65 2e 63 0a 0a 20 20 20 |ABC/ fil|e.c.. |
|000019e0| 49 6e 20 61 64 64 69 74 | 69 6f 6e 2c 20 74 68 65 |In addit|ion, the|
|000019f0| 20 65 64 69 74 20 61 6e | 64 20 65 78 20 63 6f 6d | edit an|d ex com|
|00001a00| 6d 61 6e 64 73 20 68 61 | 76 65 20 68 69 73 74 6f |mands ha|ve histo|
|00001a10| 72 69 63 61 6c 6c 79 20 | 69 67 6e 6f 72 65 64 0a |rically |ignored.|
|00001a20| 20 20 20 6c 69 74 65 72 | 61 6c 20 6e 65 78 74 20 | liter|al next |
|00001a30| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 74 68 |characte|rs in th|
|00001a40| 65 20 2b 63 6d 64 20 73 | 74 72 69 6e 67 2c 20 73 |e +cmd s|tring, s|
|00001a50| 6f 20 74 68 61 74 20 74 | 68 65 20 66 6f 6c 6c 6f |o that t|he follo|
|00001a60| 77 69 6e 67 0a 20 20 20 | 63 6f 6d 6d 61 6e 64 20 |wing. |command |
|00001a70| 77 6f 6e 27 74 20 77 6f | 72 6b 2e 0a 0a 09 3a 65 |won't wo|rk....:e|
|00001a80| 64 69 74 20 2b 31 30 7c | 73 2f 58 2f 5e 56 20 2f |dit +10||s/X/^V /|
|00001a90| 20 66 69 6c 65 2e 63 0a | 0a 20 20 20 49 20 69 6e | file.c.|. I in|
|00001aa0| 74 65 6e 64 20 74 6f 20 | 68 61 6e 64 6c 65 20 74 |tend to |handle t|
|00001ab0| 68 65 20 6c 69 74 65 72 | 61 6c 20 6e 65 78 74 20 |he liter|al next |
|00001ac0| 63 68 61 72 61 63 74 65 | 72 20 69 6e 20 65 64 69 |characte|r in edi|
|00001ad0| 74 2f 65 78 20 63 6f 6e | 73 69 73 74 65 6e 74 6c |t/ex con|sistentl|
|00001ae0| 79 0a 20 20 20 77 69 74 | 68 20 68 6f 77 20 69 74 |y. wit|h how it|
|00001af0| 20 69 73 20 68 61 6e 64 | 6c 65 64 20 69 6e 20 6f | is hand|led in o|
|00001b00| 74 68 65 72 20 63 6f 6d | 6d 61 6e 64 73 2e 0a 0a |ther com|mands...|
|00001b10| 20 20 20 4d 6f 72 65 20 | 66 75 6e 20 66 61 63 74 | More |fun fact|
|00001b20| 73 20 74 6f 20 6b 6e 6f | 77 20 61 6e 64 20 74 65 |s to kno|w and te|
|00001b30| 6c 6c 3a 0a 09 54 68 65 | 20 61 63 69 64 20 74 65 |ll:..The| acid te|
|00001b40| 73 74 20 66 6f 72 20 74 | 68 65 20 65 78 2f 65 64 |st for t|he ex/ed|
|00001b50| 69 74 20 63 6f 6d 6d 61 | 6e 64 73 3a 0a 0a 09 09 |it comma|nds:....|
|00001b60| 64 61 74 65 20 3e 20 66 | 69 6c 65 31 3b 20 64 61 |date > f|ile1; da|
|00001b70| 74 65 20 3e 20 66 69 6c | 65 32 0a 09 09 76 69 0a |te > fil|e2...vi.|
|00001b80| 09 09 3a 65 64 69 74 20 | 2b 31 7c 73 2f 2e 2f 58 |..:edit |+1|s/./X|
|00001b90| 58 58 2f 7c 77 20 66 69 | 6c 65 31 7c 20 65 20 66 |XX/|w fi|le1| e f|
|00001ba0| 69 6c 65 32 7c 31 20 7c | 20 73 2f 2e 2f 58 58 58 |ile2|1 || s/./XXX|
|00001bb0| 2f 7c 77 71 0a 0a 09 4e | 6f 20 76 65 72 73 69 6f |/|wq...N|o versio|
|00001bc0| 6e 20 6f 66 20 76 69 2c | 20 6f 66 20 77 68 69 63 |n of vi,| of whic|
|00001bd0| 68 20 49 27 6d 20 61 77 | 61 72 65 2c 20 68 61 6e |h I'm aw|are, han|
|00001be0| 64 6c 65 73 20 69 74 2e | 0a 0a 34 2e 32 3a 20 54 |dles it.|..4.2: T|
|00001bf0| 68 65 20 73 65 74 20 63 | 6f 6d 6d 61 6e 64 3a 0a |he set c|ommand:.|
|00001c00| 0a 20 20 20 54 68 65 20 | 73 65 74 20 63 6f 6d 6d |. The |set comm|
|00001c10| 61 6e 64 20 74 72 65 61 | 74 73 20 5e 56 27 73 20 |and trea|ts ^V's |
|00001c20| 61 73 20 6c 69 74 65 72 | 61 6c 20 63 68 61 72 61 |as liter|al chara|
|00001c30| 63 74 65 72 73 2c 20 73 | 6f 20 74 68 65 20 66 6f |cters, s|o the fo|
|00001c40| 6c 6c 6f 77 69 6e 67 0a | 20 20 20 63 6f 6d 6d 61 |llowing.| comma|
|00001c50| 6e 64 20 77 6f 6e 27 74 | 20 77 6f 72 6b 2e 20 20 |nd won't| work. |
|00001c60| 42 61 63 6b 73 6c 61 73 | 68 65 73 20 64 6f 20 77 |Backslas|hes do w|
|00001c70| 6f 72 6b 20 69 6e 20 74 | 68 69 73 20 63 61 73 65 |ork in t|his case|
|00001c80| 2c 20 74 68 6f 75 67 68 | 2c 20 73 6f 0a 20 20 20 |, though|, so. |
|00001c90| 74 68 65 20 73 65 63 6f | 6e 64 20 76 65 72 73 69 |the seco|nd versi|
|00001ca0| 6f 6e 20 6f 66 20 74 68 | 65 20 63 6f 6d 6d 61 6e |on of th|e comman|
|00001cb0| 64 20 64 6f 65 73 20 77 | 6f 72 6b 2e 0a 0a 09 73 |d does w|ork....s|
|00001cc0| 65 74 20 74 61 67 73 3d | 74 61 67 73 5f 66 69 6c |et tags=|tags_fil|
|00001cd0| 65 31 5e 56 20 74 61 67 | 73 5f 66 69 6c 65 32 0a |e1^V tag|s_file2.|
|00001ce0| 09 73 65 74 20 74 61 67 | 73 3d 74 61 67 73 5f 66 |.set tag|s=tags_f|
|00001cf0| 69 6c 65 31 5c 20 74 61 | 67 73 5f 66 69 6c 65 32 |ile1\ ta|gs_file2|
|00001d00| 0a 0a 20 20 20 49 20 69 | 6e 74 65 6e 64 20 74 6f |.. I i|ntend to|
|00001d10| 20 63 6f 6e 74 69 6e 75 | 65 20 70 65 72 6d 69 74 | continu|e permit|
|00001d20| 74 69 6e 67 20 62 61 63 | 6b 73 6c 61 73 68 65 73 |ting bac|kslashes|
|00001d30| 20 69 6e 20 73 65 74 20 | 63 6f 6d 6d 61 6e 64 73 | in set |commands|
|00001d40| 2c 20 62 75 74 0a 20 20 | 20 74 6f 20 61 6c 73 6f |, but. | to also|
|00001d50| 20 70 65 72 6d 69 74 20 | 6c 69 74 65 72 61 6c 20 | permit |literal |
|00001d60| 6e 65 78 74 20 63 68 61 | 72 61 63 74 65 72 73 20 |next cha|racters |
|00001d70| 74 6f 20 77 6f 72 6b 20 | 61 73 20 77 65 6c 6c 2e |to work |as well.|
|00001d80| 20 20 54 68 69 73 20 69 | 73 0a 20 20 20 62 61 63 | This i|s. bac|
|00001d90| 6b 77 61 72 64 20 63 6f | 6d 70 61 74 69 62 6c 65 |kward co|mpatible|
|00001da0| 2c 20 62 75 74 20 77 69 | 6c 6c 20 61 6c 73 6f 20 |, but wi|ll also |
|00001db0| 6d 61 6b 65 20 73 65 74 | 20 63 6f 6e 73 69 73 74 |make set| consist|
|00001dc0| 65 6e 74 20 77 69 74 68 | 20 74 68 65 0a 20 20 20 |ent with| the. |
|00001dd0| 6f 74 68 65 72 20 63 6f | 6d 6d 61 6e 64 73 2e 20 |other co|mmands. |
|00001de0| 20 49 20 74 68 69 6e 6b | 20 69 74 27 73 20 75 6e | I think| it's un|
|00001df0| 6c 69 6b 65 6c 79 20 74 | 6f 20 62 72 65 61 6b 20 |likely t|o break |
|00001e00| 61 6e 79 20 68 69 73 74 | 6f 72 69 63 0a 20 20 20 |any hist|oric. |
|00001e10| 2e 65 78 72 63 27 73 2c | 20 67 69 76 65 6e 20 74 |.exrc's,| given t|
|00001e20| 68 61 74 20 74 68 65 72 | 65 20 61 72 65 20 70 72 |hat ther|e are pr|
|00001e30| 6f 62 61 62 6c 79 20 76 | 65 72 79 20 66 65 77 20 |obably v|ery few |
|00001e40| 66 69 6c 65 73 20 77 69 | 74 68 20 5e 56 27 73 0a |files wi|th ^V's.|
|00001e50| 20 20 20 69 6e 20 74 68 | 65 69 72 20 6e 61 6d 65 | in th|eir name|
|00001e60| 2e 0a 0a 34 2e 33 3a 20 | 54 68 65 20 74 61 67 20 |...4.3: |The tag |
|00001e70| 63 6f 6d 6d 61 6e 64 3a | 0a 0a 20 20 20 54 68 65 |command:|.. The|
|00001e80| 20 74 61 67 20 63 6f 6d | 6d 61 6e 64 20 69 67 6e | tag com|mand ign|
|00001e90| 6f 72 65 73 20 5e 56 27 | 73 20 61 6e 64 20 62 61 |ores ^V'|s and ba|
|00001ea0| 63 6b 73 6c 61 73 68 65 | 73 3b 20 74 68 65 72 65 |ckslashe|s; there|
|00001eb0| 27 73 20 6e 6f 20 77 61 | 79 20 74 6f 0a 20 20 20 |'s no wa|y to. |
|00001ec0| 67 65 74 20 61 20 73 70 | 61 63 65 20 69 6e 74 6f |get a sp|ace into|
|00001ed0| 20 61 20 74 61 67 20 6e | 61 6d 65 2e 0a 0a 20 20 | a tag n|ame... |
|00001ee0| 20 49 20 74 68 69 6e 6b | 20 74 68 69 73 20 69 73 | I think| this is|
|00001ef0| 20 61 20 64 6f 6e 27 74 | 20 63 61 72 65 2c 20 61 | a don't| care, a|
|00001f00| 6e 64 20 49 20 64 6f 6e | 27 74 20 69 6e 74 65 6e |nd I don|'t inten|
|00001f10| 64 20 74 6f 20 66 69 78 | 20 69 74 2e 0a 0a 35 3a |d to fix| it...5:|
|00001f20| 20 52 65 67 75 6c 61 72 | 20 65 78 70 72 65 73 73 | Regular| express|
|00001f30| 69 6f 6e 73 3a 0a 0a 09 | 3a 67 6c 6f 62 61 6c 20 |ions:...|:global |
|00001f40| 2f 70 61 74 74 65 72 6e | 2f 20 63 6f 6d 6d 61 6e |/pattern|/ comman|
|00001f50| 64 0a 09 3a 73 75 62 73 | 74 69 74 75 74 65 20 2f |d..:subs|titute /|
|00001f60| 70 61 74 74 65 72 6e 2f | 72 65 70 6c 61 63 65 2f |pattern/|replace/|
|00001f70| 0a 09 3a 76 67 6c 6f 62 | 61 6c 20 2f 70 61 74 74 |..:vglob|al /patt|
|00001f80| 65 72 6e 2f 20 63 6f 6d | 6d 61 6e 64 0a 0a 20 20 |ern/ com|mand.. |
|00001f90| 20 49 20 69 6e 74 65 6e | 64 20 74 6f 20 74 72 65 | I inten|d to tre|
|00001fa0| 61 74 20 61 20 62 61 63 | 6b 73 6c 61 73 68 20 69 |at a bac|kslash i|
|00001fb0| 6e 20 74 68 65 20 70 61 | 74 74 65 72 6e 2c 20 66 |n the pa|ttern, f|
|00001fc0| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 74 68 65 0a 20 |ollowed |by the. |
|00001fd0| 20 20 64 65 6c 69 6d 69 | 74 65 72 20 63 68 61 72 | delimi|ter char|
|00001fe0| 61 63 74 65 72 20 6f 72 | 20 61 20 62 61 63 6b 73 |acter or| a backs|
|00001ff0| 6c 61 73 68 2c 20 61 73 | 20 74 68 61 74 20 6c 69 |lash, as| that li|
|00002000| 74 65 72 61 6c 20 63 68 | 61 72 61 63 74 65 72 2e |teral ch|aracter.|
|00002010| 0a 0a 20 20 20 54 68 69 | 73 20 69 73 20 68 69 73 |.. Thi|s is his|
|00002020| 74 6f 72 69 63 20 62 65 | 68 61 76 69 6f 72 20 69 |toric be|havior i|
|00002030| 6e 20 76 69 2e 20 20 49 | 74 20 77 6f 75 6c 64 20 |n vi. I|t would |
|00002040| 67 65 74 20 72 69 64 20 | 6f 66 20 61 20 66 61 69 |get rid |of a fai|
|00002050| 72 6c 79 0a 20 20 20 68 | 61 72 64 2d 74 6f 2d 65 |rly. h|ard-to-e|
|00002060| 78 70 6c 61 69 6e 20 73 | 70 65 63 69 61 6c 20 63 |xplain s|pecial c|
|00002070| 61 73 65 20 69 66 20 77 | 65 20 63 6f 75 6c 64 20 |ase if w|e could |
|00002080| 6a 75 73 74 20 75 73 65 | 20 74 68 65 20 63 68 61 |just use| the cha|
|00002090| 72 61 63 74 65 72 0a 20 | 20 20 69 6d 6d 65 64 69 |racter. | immedi|
|000020a0| 61 74 65 6c 79 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |ately fo|llowing |
|000020b0| 74 68 65 20 62 61 63 6b | 73 6c 61 73 68 20 69 6e |the back|slash in|
|000020c0| 20 61 6c 6c 20 63 61 73 | 65 73 2c 20 6f 72 2c 20 | all cas|es, or, |
|000020d0| 69 66 20 77 65 0a 20 20 | 20 63 68 61 6e 67 65 64 |if we. | changed|
|000020e0| 20 6e 76 69 20 74 6f 20 | 70 65 72 6d 69 74 20 75 | nvi to |permit u|
|000020f0| 73 69 6e 67 20 74 68 65 | 20 6c 69 74 65 72 61 6c |sing the| literal|
|00002100| 20 6e 65 78 74 20 63 68 | 61 72 61 63 74 65 72 20 | next ch|aracter |
|00002110| 61 73 20 61 0a 20 20 20 | 70 61 74 74 65 72 6e 20 |as a. |pattern |
|00002120| 65 73 63 61 70 65 20 63 | 68 61 72 61 63 74 65 72 |escape c|haracter|
|00002130| 2c 20 62 75 74 20 74 68 | 61 74 20 77 6f 75 6c 64 |, but th|at would|
|00002140| 20 70 72 6f 62 61 62 6c | 79 20 62 72 65 61 6b 20 | probabl|y break |
|00002150| 68 69 73 74 6f 72 69 63 | 0a 20 20 20 73 63 72 69 |historic|. scri|
|00002160| 70 74 73 2e 0a 0a 20 20 | 20 54 68 65 72 65 20 69 |pts... | There i|
|00002170| 73 20 61 6e 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |s an add|itional |
|00002180| 65 73 63 61 70 69 6e 67 | 20 69 73 73 75 65 20 66 |escaping| issue f|
|00002190| 6f 72 20 72 65 67 75 6c | 61 72 20 65 78 70 72 65 |or regul|ar expre|
|000021a0| 73 73 69 6f 6e 73 2e 0a | 20 20 20 57 69 74 68 69 |ssions..| Withi|
|000021b0| 6e 20 74 68 65 20 70 61 | 74 74 65 72 6e 20 61 6e |n the pa|ttern an|
|000021c0| 64 20 72 65 70 6c 61 63 | 65 6d 65 6e 74 2c 20 74 |d replac|ement, t|
|000021d0| 68 65 20 27 7c 27 20 63 | 68 61 72 61 63 74 65 72 |he '|' c|haracter|
|000021e0| 20 64 69 64 20 6e 6f 74 | 0a 20 20 20 64 65 6c 69 | did not|. deli|
|000021f0| 6d 69 74 20 65 78 20 63 | 6f 6d 6d 61 6e 64 73 2e |mit ex c|ommands.|
|00002200| 20 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 74 | For ex|ample, t|
|00002210| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 69 73 20 |he follo|wing is |
|00002220| 6c 65 67 61 6c 2e 0a 0a | 09 3a 73 75 62 73 74 69 |legal...|.:substi|
|00002230| 74 75 74 65 20 2f 7c 2f | 50 49 50 45 2f 7c 73 2f |tute /|/|PIPE/|s/|
|00002240| 50 2f 58 58 58 2f 0a 0a | 20 20 20 54 68 69 73 20 |P/XXX/..| This |
|00002250| 69 73 20 61 20 73 70 65 | 63 69 61 6c 20 63 61 73 |is a spe|cial cas|
|00002260| 65 20 74 68 61 74 20 49 | 20 77 69 6c 6c 20 73 75 |e that I| will su|
|00002270| 70 70 6f 72 74 2e 0a 0a | 36 3a 20 45 6e 64 69 6e |pport...|6: Endin|
|00002280| 67 20 61 6e 79 74 68 69 | 6e 67 20 77 69 74 68 20 |g anythi|ng with |
|00002290| 61 6e 20 65 73 63 61 70 | 65 20 63 68 61 72 61 63 |an escap|e charac|
|000022a0| 74 65 72 3a 0a 0a 20 20 | 20 49 6e 20 61 6c 6c 20 |ter:.. | In all |
|000022b0| 6f 66 20 74 68 65 20 61 | 62 6f 76 65 20 72 75 6c |of the a|bove rul|
|000022c0| 65 73 2c 20 61 6e 20 65 | 73 63 61 70 65 20 63 68 |es, an e|scape ch|
|000022d0| 61 72 61 63 74 65 72 20 | 28 65 69 74 68 65 72 20 |aracter |(either |
|000022e0| 5e 56 20 6f 72 20 61 0a | 20 20 20 62 61 63 6b 73 |^V or a.| backs|
|000022f0| 6c 61 73 68 29 20 61 74 | 20 74 68 65 20 65 6e 64 |lash) at| the end|
|00002300| 20 6f 66 20 61 6e 20 61 | 72 67 75 6d 65 6e 74 20 | of an a|rgument |
|00002310| 6f 72 20 66 69 6c 65 20 | 6e 61 6d 65 20 69 73 20 |or file |name is |
|00002320| 6e 6f 74 20 68 61 6e 64 | 6c 65 64 0a 20 20 20 73 |not hand|led. s|
|00002330| 70 65 63 69 61 6c 6c 79 | 2c 20 62 75 74 20 75 73 |pecially|, but us|
|00002340| 65 64 20 61 73 20 61 20 | 6c 69 74 65 72 61 6c 20 |ed as a |literal |
|00002350| 63 68 61 72 61 63 74 65 | 72 2e 0a 00 00 00 00 00 |characte|r.......|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 6e 76 69 2e 31 2e 30 33 | 2f 64 6f 63 73 2f 73 74 |nvi.1.03|/docs/st|
|00002410| 72 75 63 74 75 72 65 73 | 00 00 00 00 00 00 00 00 |ructures|........|
|00002420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 31 30 30 34 | 34 34 00 00 30 30 33 32 |....1004|44..0032|
|00002470| 37 36 00 00 30 30 30 30 | 31 32 00 00 30 30 30 30 |76..0000|12..0000|
|00002480| 30 30 30 35 31 33 35 00 | 30 35 34 36 35 32 33 34 |0005135.|05465234|
|00002490| 30 35 35 00 30 31 31 35 | 37 31 00 20 30 00 00 00 |055.0115|71. 0...|
|000024a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 20 20 31 35 31 32 00 | 00 00 00 00 00 00 00 00 |. 1512.|........|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00002560| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 23 09 40 28 23 29 73 74 | 72 75 63 74 75 72 65 73 |#.@(#)st|ructures|
|00002610| 09 35 2e 32 20 28 42 65 | 72 6b 65 6c 65 79 29 20 |.5.2 (Be|rkeley) |
|00002620| 31 31 2f 31 2f 39 33 0a | 0a 54 68 65 72 65 20 61 |11/1/93.|.There a|
|00002630| 72 65 20 74 68 72 65 65 | 20 6d 61 6a 6f 72 20 64 |re three| major d|
|00002640| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 73 20 69 |ata stru|ctures i|
|00002650| 6e 20 74 68 69 73 20 70 | 61 63 6b 61 67 65 2e 20 |n this p|ackage. |
|00002660| 20 54 68 65 20 66 69 72 | 73 74 20 69 73 20 61 0a | The fir|st is a.|
|00002670| 73 69 6e 67 6c 65 20 67 | 6c 6f 62 61 6c 20 73 74 |single g|lobal st|
|00002680| 72 75 63 74 75 72 65 20 | 28 6e 61 6d 65 64 20 47 |ructure |(named G|
|00002690| 53 29 20 77 68 69 63 68 | 20 63 6f 6e 74 61 69 6e |S) which| contain|
|000026a0| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 63 6f |s inform|ation co|
|000026b0| 6d 6d 6f 6e 20 74 6f 0a | 61 6c 6c 20 66 69 6c 65 |mmon to.|all file|
|000026c0| 73 20 61 6e 64 20 73 63 | 72 65 65 6e 73 2e 20 20 |s and sc|reens. |
|000026d0| 49 74 27 73 20 72 65 61 | 6c 6c 79 20 70 72 65 74 |It's rea|lly pret|
|000026e0| 74 79 20 74 69 6e 79 2c | 20 61 6e 64 20 66 75 6e |ty tiny,| and fun|
|000026f0| 63 74 69 6f 6e 73 20 6d | 6f 72 65 20 61 73 20 61 |ctions m|ore as a|
|00002700| 0a 73 69 6e 67 6c 65 20 | 70 6c 61 63 65 20 74 6f |.single |place to|
|00002710| 20 68 61 6e 67 20 74 68 | 69 6e 67 73 20 74 68 61 | hang th|ings tha|
|00002720| 6e 20 61 6e 79 74 68 69 | 6e 67 20 65 6c 73 65 2e |n anythi|ng else.|
|00002730| 0a 0a 54 68 65 20 73 65 | 63 6f 6e 64 20 61 6e 64 |..The se|cond and|
|00002740| 20 74 68 69 72 64 20 73 | 74 72 75 63 74 75 72 65 | third s|tructure|
|00002750| 73 20 61 72 65 20 74 68 | 65 20 66 69 6c 65 20 73 |s are th|e file s|
|00002760| 74 72 75 63 74 75 72 65 | 73 20 28 6e 61 6d 65 64 |tructure|s (named|
|00002770| 20 45 58 46 29 20 61 6e | 64 0a 74 68 65 20 73 63 | EXF) an|d.the sc|
|00002780| 72 65 65 6e 20 73 74 72 | 75 63 74 75 72 65 73 20 |reen str|uctures |
|00002790| 28 6e 61 6d 65 64 20 53 | 43 52 29 2e 20 20 54 68 |(named S|CR). Th|
|000027a0| 65 79 20 63 6f 6e 74 61 | 69 6e 20 69 6e 66 6f 72 |ey conta|in infor|
|000027b0| 6d 61 74 69 6f 6e 20 74 | 68 65 6f 72 65 74 69 63 |mation t|heoretic|
|000027c0| 61 6c 6c 79 0a 75 6e 69 | 71 75 65 20 74 6f 20 61 |ally.uni|que to a|
|000027d0| 20 73 63 72 65 65 6e 20 | 6f 72 20 66 69 6c 65 2c | screen |or file,|
|000027e0| 20 72 65 73 70 65 63 74 | 69 76 65 6c 79 2e 20 20 | respect|ively. |
|000027f0| 45 61 63 68 20 53 43 52 | 20 73 74 72 75 63 74 75 |Each SCR| structu|
|00002800| 72 65 20 68 61 73 20 61 | 20 73 65 74 0a 6f 66 20 |re has a| set.of |
|00002810| 66 75 6e 63 74 69 6f 6e | 73 20 77 68 69 63 68 20 |function|s which |
|00002820| 75 70 64 61 74 65 20 74 | 68 65 20 73 63 72 65 65 |update t|he scree|
|00002830| 6e 20 61 6e 64 2f 6f 72 | 20 72 65 74 75 72 6e 20 |n and/or| return |
|00002840| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00002850| 74 20 74 68 65 0a 73 63 | 72 65 65 6e 20 66 72 6f |t the.sc|reen fro|
|00002860| 6d 20 74 68 65 20 75 6e | 64 65 72 6c 79 69 6e 67 |m the un|derlying|
|00002870| 20 73 63 72 65 65 6e 20 | 70 61 63 6b 61 67 65 2e | screen |package.|
|00002880| 0a 0a 54 68 65 20 47 53 | 20 73 74 72 75 63 74 75 |..The GS| structu|
|00002890| 72 65 20 63 6f 6e 74 61 | 69 6e 73 20 6c 69 6e 6b |re conta|ins link|
|000028a0| 65 64 20 6c 69 73 74 73 | 20 53 43 52 20 73 74 72 |ed lists| SCR str|
|000028b0| 75 63 74 75 72 65 73 2e | 20 20 54 68 65 20 73 74 |uctures.| The st|
|000028c0| 72 75 63 74 75 72 65 73 | 0a 63 61 6e 20 61 6c 73 |ructures|.can als|
|000028d0| 6f 20 62 65 20 63 6c 61 | 73 73 65 64 20 62 79 20 |o be cla|ssed by |
|000028e0| 70 65 72 73 69 73 74 65 | 6e 63 65 2e 20 20 54 68 |persiste|nce. Th|
|000028f0| 65 20 47 53 20 73 74 72 | 75 63 74 75 72 65 20 6e |e GS str|ucture n|
|00002900| 65 76 65 72 20 67 6f 65 | 73 20 61 77 61 79 0a 61 |ever goe|s away.a|
|00002910| 6e 64 20 74 68 65 20 53 | 43 52 20 73 74 72 75 63 |nd the S|CR struc|
|00002920| 74 75 72 65 20 70 65 72 | 73 69 73 74 73 20 6f 76 |ture per|sists ov|
|00002930| 65 72 20 69 6e 73 74 61 | 6e 63 65 73 20 6f 66 20 |er insta|nces of |
|00002940| 66 69 6c 65 73 2e 0a 0a | 46 69 6c 65 20 6e 61 6d |files...|File nam|
|00002950| 65 73 20 68 61 76 65 20 | 64 69 66 66 65 72 65 6e |es have |differen|
|00002960| 74 20 70 72 6f 70 65 72 | 74 69 65 73 20 74 68 61 |t proper|ties tha|
|00002970| 6e 20 66 69 6c 65 73 20 | 74 68 65 6d 73 65 6c 76 |n files |themselv|
|00002980| 65 73 2c 20 73 6f 20 74 | 68 65 20 6e 61 6d 65 0a |es, so t|he name.|
|00002990| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 66 6f 72 20 |informat|ion for |
|000029a0| 61 20 66 69 6c 65 20 69 | 73 20 68 65 6c 64 20 69 |a file i|s held i|
|000029b0| 6e 20 61 6e 20 46 52 45 | 46 20 73 74 72 75 63 74 |n an FRE|F struct|
|000029c0| 75 72 65 20 77 68 69 63 | 68 20 69 73 20 63 68 61 |ure whic|h is cha|
|000029d0| 69 6e 65 64 20 66 72 6f | 6d 0a 74 68 65 20 53 43 |ined fro|m.the SC|
|000029e0| 52 20 73 74 72 75 63 74 | 75 72 65 2e 0a 0a 49 6e |R struct|ure...In|
|000029f0| 20 67 65 6e 65 72 61 6c | 2c 20 66 75 6e 63 74 69 | general|, functi|
|00002a00| 6f 6e 73 20 61 72 65 20 | 61 6c 77 61 79 73 20 70 |ons are |always p|
|00002a10| 61 73 73 65 64 20 61 6e | 20 53 43 52 20 73 74 72 |assed an| SCR str|
|00002a20| 75 63 74 75 72 65 20 61 | 6e 64 20 6f 66 74 65 6e |ucture a|nd often|
|00002a30| 20 61 6e 20 45 58 46 0a | 73 74 72 75 63 74 75 72 | an EXF.|structur|
|00002a40| 65 20 61 73 20 77 65 6c | 6c 2e 20 20 54 68 65 20 |e as wel|l. The |
|00002a50| 53 43 52 20 73 74 72 75 | 63 74 75 72 65 20 69 73 |SCR stru|cture is|
|00002a60| 20 6e 65 63 65 73 73 61 | 72 79 20 66 6f 72 20 61 | necessa|ry for a|
|00002a70| 6e 79 20 72 6f 75 74 69 | 6e 65 20 74 68 61 74 0a |ny routi|ne that.|
|00002a80| 77 69 73 68 65 73 20 74 | 6f 20 74 61 6c 6b 20 74 |wishes t|o talk t|
|00002a90| 6f 20 74 68 65 20 73 63 | 72 65 65 6e 2c 20 74 68 |o the sc|reen, th|
|00002aa0| 65 20 45 58 46 20 73 74 | 72 75 63 74 75 72 65 20 |e EXF st|ructure |
|00002ab0| 69 73 20 6e 65 63 65 73 | 73 61 72 79 20 66 6f 72 |is neces|sary for|
|00002ac0| 20 61 6e 79 0a 72 6f 75 | 74 69 6e 65 20 74 68 61 | any.rou|tine tha|
|00002ad0| 74 20 77 61 6e 74 73 20 | 74 6f 20 6d 6f 64 69 66 |t wants |to modif|
|00002ae0| 79 20 74 68 65 20 66 69 | 6c 65 2e 20 20 54 68 65 |y the fi|le. The|
|00002af0| 20 72 65 6c 61 74 69 6f | 6e 73 68 69 70 20 62 65 | relatio|nship be|
|00002b00| 74 77 65 65 6e 20 61 6e | 20 53 43 52 0a 73 74 72 |tween an| SCR.str|
|00002b10| 75 63 74 75 72 65 20 61 | 6e 64 20 69 74 73 20 75 |ucture a|nd its u|
|00002b20| 6e 64 65 72 6c 79 69 6e | 67 20 45 58 46 20 73 74 |nderlyin|g EXF st|
|00002b30| 72 75 63 74 75 72 65 20 | 69 73 20 6e 6f 74 20 66 |ructure |is not f|
|00002b40| 69 78 65 64 2c 20 61 6e | 64 20 61 6c 74 68 6f 75 |ixed, an|d althou|
|00002b50| 67 68 20 79 6f 75 0a 63 | 61 6e 20 74 72 61 6e 73 |gh you.c|an trans|
|00002b60| 6c 61 74 65 20 66 72 6f | 6d 20 61 6e 20 53 43 52 |late fro|m an SCR|
|00002b70| 20 74 6f 20 74 68 65 20 | 75 6e 64 65 72 6c 79 69 | to the |underlyi|
|00002b80| 6e 67 20 45 58 46 2c 20 | 69 74 20 69 73 20 64 69 |ng EXF, |it is di|
|00002b90| 73 63 6f 75 72 61 67 65 | 64 2e 20 20 49 66 0a 74 |scourage|d. If.t|
|00002ba0| 68 69 73 20 62 65 63 6f | 6d 65 73 20 74 6f 6f 20 |his beco|mes too |
|00002bb0| 6f 6e 65 72 6f 75 73 2c | 20 49 20 73 75 73 70 65 |onerous,| I suspe|
|00002bc0| 63 74 20 49 27 6c 6c 20 | 6a 75 73 74 20 73 74 6f |ct I'll |just sto|
|00002bd0| 70 20 70 61 73 73 69 6e | 67 20 61 72 6f 75 6e 64 |p passin|g around|
|00002be0| 20 74 68 65 20 45 58 46 | 0a 69 6e 20 74 68 65 20 | the EXF|.in the |
|00002bf0| 66 75 74 75 72 65 2e 0a | 0a 54 68 65 20 6e 61 6d |future..|.The nam|
|00002c00| 69 6e 67 20 6f 66 20 74 | 68 65 20 73 74 72 75 63 |ing of t|he struc|
|00002c10| 74 75 72 65 73 20 69 73 | 20 63 6f 6e 73 69 73 74 |tures is| consist|
|00002c20| 65 6e 74 20 61 63 72 6f | 73 73 20 74 68 65 20 70 |ent acro|ss the p|
|00002c30| 72 6f 67 72 61 6d 2e 20 | 20 28 4d 61 63 72 6f 73 |rogram. | (Macros|
|00002c40| 0a 65 76 65 6e 20 64 65 | 70 65 6e 64 20 6f 6e 20 |.even de|pend on |
|00002c50| 69 74 2c 20 73 6f 20 64 | 6f 6e 27 74 20 74 72 79 |it, so d|on't try|
|00002c60| 20 61 6e 64 20 63 68 61 | 6e 67 65 20 69 74 21 29 | and cha|nge it!)|
|00002c70| 20 20 54 68 65 20 67 6c | 6f 62 61 6c 20 73 74 72 | The gl|obal str|
|00002c80| 75 63 74 75 72 65 20 69 | 73 0a 22 67 70 22 2c 20 |ucture i|s."gp", |
|00002c90| 74 68 65 20 73 63 72 65 | 65 6e 20 73 74 72 75 63 |the scre|en struc|
|00002ca0| 74 75 72 65 20 69 73 20 | 22 73 70 22 2c 20 61 6e |ture is |"sp", an|
|00002cb0| 64 20 74 68 65 20 66 69 | 6c 65 20 73 74 72 75 63 |d the fi|le struc|
|00002cc0| 74 75 72 65 20 69 73 20 | 22 65 70 22 2e 0a 0a 41 |ture is |"ep"...A|
|00002cd0| 20 66 65 77 20 6f 74 68 | 65 72 20 64 61 74 61 20 | few oth|er data |
|00002ce0| 73 74 72 75 63 74 75 72 | 65 73 3a 0a 0a 54 45 58 |structur|es:..TEX|
|00002cf0| 54 09 49 6e 20 6e 76 69 | 2f 63 75 74 2e 68 2e 20 |T.In nvi|/cut.h. |
|00002d00| 20 54 68 69 73 20 73 74 | 72 75 63 74 75 72 65 20 | This st|ructure |
|00002d10| 64 65 73 63 72 69 62 65 | 73 20 61 20 70 6f 72 74 |describe|s a port|
|00002d20| 69 6f 6e 20 6f 66 20 61 | 20 6c 69 6e 65 2c 0a 09 |ion of a| line,..|
|00002d30| 61 6e 64 20 69 73 20 75 | 73 65 64 20 62 79 20 74 |and is u|sed by t|
|00002d40| 68 65 20 69 6e 70 75 74 | 20 72 6f 75 74 69 6e 65 |he input| routine|
|00002d50| 73 20 61 6e 64 20 61 73 | 20 74 68 65 20 22 6c 69 |s and as| the "li|
|00002d60| 6e 65 22 20 70 61 72 74 | 20 6f 66 20 61 0a 09 63 |ne" part| of a..c|
|00002d70| 75 74 20 62 75 66 66 65 | 72 2e 0a 0a 43 42 09 49 |ut buffe|r...CB.I|
|00002d80| 6e 20 6e 76 69 2f 63 75 | 74 2e 68 2e 09 41 20 63 |n nvi/cu|t.h..A c|
|00002d90| 75 74 20 62 75 66 66 65 | 72 2e 20 20 41 20 63 75 |ut buffe|r. A cu|
|00002da0| 74 20 62 75 66 66 65 72 | 20 69 73 20 61 20 70 6c |t buffer| is a pl|
|00002db0| 61 63 65 20 74 6f 0a 09 | 68 61 6e 67 20 61 20 6c |ace to..|hang a l|
|00002dc0| 69 73 74 20 6f 66 20 54 | 45 58 54 20 73 74 72 75 |ist of T|EXT stru|
|00002dd0| 63 74 75 72 65 73 2e 0a | 0a 4d 41 52 4b 09 49 6e |ctures..|.MARK.In|
|00002de0| 20 6e 76 69 2f 6d 61 72 | 6b 2e 68 2e 20 20 41 20 | nvi/mar|k.h. A |
|00002df0| 63 75 72 73 6f 72 20 70 | 6f 73 69 74 69 6f 6e 2c |cursor p|osition,|
|00002e00| 20 63 6f 6e 73 69 73 74 | 69 6e 67 20 6f 66 20 61 | consist|ing of a|
|00002e10| 20 6c 69 6e 65 20 6e 75 | 6d 62 65 72 0a 09 61 6e | line nu|mber..an|
|00002e20| 64 20 61 20 63 6f 6c 75 | 6d 6e 20 6e 75 6d 62 65 |d a colu|mn numbe|
|00002e30| 72 2e 0a 0a 4d 53 47 09 | 49 6e 20 6e 76 69 2f 6d |r...MSG.|In nvi/m|
|00002e40| 73 67 2e 68 2e 20 20 41 | 20 63 68 61 69 6e 20 6f |sg.h. A| chain o|
|00002e50| 66 20 6d 65 73 73 61 67 | 65 73 20 66 6f 72 20 74 |f messag|es for t|
|00002e60| 68 65 20 75 73 65 72 2e | 0a 0a 53 45 51 09 49 6e |he user.|..SEQ.In|
|00002e70| 20 6e 76 69 2f 73 65 71 | 2e 68 2e 20 20 41 6e 20 | nvi/seq|.h. An |
|00002e80| 61 62 62 72 65 76 69 61 | 74 69 6f 6e 20 6f 72 20 |abbrevia|tion or |
|00002e90| 61 20 6d 61 70 20 65 6e | 74 72 79 2e 0a 0a 45 58 |a map en|try...EX|
|00002ea0| 43 4d 44 41 52 47 0a 09 | 49 6e 20 6e 76 69 2f 65 |CMDARG..|In nvi/e|
|00002eb0| 78 2f 65 78 63 6d 64 2e | 68 2e 73 74 75 62 2e 20 |x/excmd.|h.stub. |
|00002ec0| 20 54 68 65 20 73 74 72 | 75 63 74 75 72 65 20 74 | The str|ucture t|
|00002ed0| 68 61 74 20 67 65 74 73 | 20 70 61 73 73 65 64 20 |hat gets| passed |
|00002ee0| 61 72 6f 75 6e 64 0a 09 | 74 6f 20 74 68 65 20 66 |around..|to the f|
|00002ef0| 75 6e 63 74 69 6f 6e 73 | 20 74 68 61 74 20 69 6d |unctions| that im|
|00002f00| 70 6c 65 6d 65 6e 74 20 | 74 68 65 20 65 78 20 63 |plement |the ex c|
|00002f10| 6f 6d 6d 61 6e 64 73 2e | 20 20 28 54 68 65 20 6d |ommands.| (The m|
|00002f20| 61 69 6e 0a 09 65 78 20 | 63 6f 6d 6d 61 6e 64 20 |ain..ex |command |
|00002f30| 6c 6f 6f 70 20 28 73 65 | 65 20 6e 76 69 2f 65 78 |loop (se|e nvi/ex|
|00002f40| 2f 65 78 2e 63 29 20 62 | 75 69 6c 64 73 20 74 68 |/ex.c) b|uilds th|
|00002f50| 69 73 20 75 70 20 61 6e | 64 20 74 68 65 6e 20 70 |is up an|d then p|
|00002f60| 61 73 73 65 73 0a 09 69 | 74 20 74 6f 20 74 68 65 |asses..i|t to the|
|00002f70| 20 65 78 20 66 75 6e 63 | 74 69 6f 6e 73 2e 29 0a | ex func|tions.).|
|00002f80| 0a 56 49 43 4d 44 41 52 | 47 0a 09 49 6e 20 6e 76 |.VICMDAR|G..In nv|
|00002f90| 69 2f 76 69 2f 76 63 6d | 64 2e 68 2e 20 20 54 68 |i/vi/vcm|d.h. Th|
|00002fa0| 65 20 73 74 72 75 63 74 | 75 72 65 20 74 68 61 74 |e struct|ure that|
|00002fb0| 20 67 65 74 73 20 70 61 | 73 73 65 64 20 61 72 6f | gets pa|ssed aro|
|00002fc0| 75 6e 64 20 74 6f 20 74 | 68 65 0a 09 66 75 6e 63 |und to t|he..func|
|00002fd0| 74 69 6f 6e 73 20 74 68 | 61 74 20 69 6d 70 6c 65 |tions th|at imple|
|00002fe0| 6d 65 6e 74 20 74 68 65 | 20 76 69 20 63 6f 6d 6d |ment the| vi comm|
|00002ff0| 61 6e 64 73 2e 20 20 28 | 54 68 65 20 6d 61 69 6e |ands. (|The main|
|00003000| 20 76 69 20 63 6f 6d 6d | 61 6e 64 0a 09 6c 6f 6f | vi comm|and..loo|
|00003010| 70 20 28 73 65 65 20 6e | 76 69 2f 76 69 2f 76 69 |p (see n|vi/vi/vi|
|00003020| 2e 63 29 20 62 75 69 6c | 64 73 20 74 68 69 73 20 |.c) buil|ds this |
|00003030| 75 70 20 61 6e 64 20 74 | 68 65 6e 20 70 61 73 73 |up and t|hen pass|
|00003040| 65 73 20 69 74 20 74 6f | 20 74 68 65 0a 09 76 69 |es it to| the..vi|
|00003050| 20 66 75 6e 63 74 69 6f | 6e 73 2e 29 0a 09 63 61 | functio|ns.)..ca|
|00003060| 72 72 69 61 67 65 20 72 | 65 74 75 72 6e 20 28 5e |rriage r|eturn (^|
|00003070| 4d 29 0a 09 65 73 63 61 | 70 65 09 09 28 5e 5b 29 |M)..esca|pe..(^[)|
|00003080| 0a 09 61 75 74 6f 69 6e | 64 65 6e 74 20 63 68 61 |..autoin|dent cha|
|00003090| 72 61 63 74 65 72 73 0a | 09 09 09 28 5e 44 2c 20 |racters.|...(^D, |
|000030a0| 30 2c 20 5e 2c 20 5e 54 | 29 0a 09 65 72 61 73 65 |0, ^, ^T|)..erase|
|000030b0| 2c 20 77 6f 72 64 20 65 | 72 61 73 65 2c 20 61 6e |, word e|rase, an|
|000030c0| 64 20 6c 69 6e 65 20 65 | 72 61 73 65 0a 09 09 09 |d line e|rase....|
|000030d0| 28 5e 48 2c 20 5e 57 2c | 20 5e 55 29 0a 09 6e 65 |(^H, ^W,| ^U)..ne|
|000030e0| 77 6c 69 6e 65 09 09 28 | 5e 4a 29 09 09 09 28 6e |wline..(|^J)...(n|
|000030f0| 6f 74 20 68 69 73 74 6f | 72 69 63 20 70 72 61 63 |ot histo|ric prac|
|00003100| 74 69 63 65 29 0a 09 73 | 75 73 70 65 6e 64 09 09 |tice)..s|uspend..|
|00003110| 28 5e 5a 29 09 09 09 28 | 6e 6f 74 20 68 69 73 74 |(^Z)...(|not hist|
|00003120| 6f 72 69 63 20 70 72 61 | 63 74 69 63 65 29 0a 09 |oric pra|ctice)..|
|00003130| 72 65 70 61 69 6e 74 09 | 09 28 5e 4c 29 09 09 09 |repaint.|.(^L)...|
|00003140| 28 6e 6f 74 20 68 69 73 | 74 6f 72 69 63 20 70 72 |(not his|toric pr|
|00003150| 61 63 74 69 63 65 29 0a | 0a 20 20 20 76 69 20 63 |actice).|. vi c|
|00003160| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 20 28 3a 63 6f |ommand l|ine (:co|
|00003170| 6c 6f 6e 20 63 6f 6d 6d | 61 6e 64 73 29 3a 0a 0a |lon comm|ands):..|
|00003180| 09 63 61 72 72 69 61 67 | 65 20 72 65 74 75 72 6e |.carriag|e return|
|00003190| 20 28 5e 4d 29 0a 09 65 | 73 63 61 70 65 09 09 28 | (^M)..e|scape..(|
|000031a0| 5e 5b 29 0a 09 65 72 61 | 73 65 2c 20 77 6f 72 64 |^[)..era|se, word|
|000031b0| 20 65 72 61 73 65 2c 20 | 61 6e 64 20 6c 69 6e 65 | erase, |and line|
|000031c0| 20 65 72 61 73 65 0a 09 | 09 09 28 5e 48 2c 20 5e | erase..|..(^H, ^|
|000031d0| 57 2c 20 5e 55 29 0a 09 | 6e 65 77 6c 69 6e 65 09 |W, ^U)..|newline.|
|000031e0| 09 28 5e 4a 29 09 09 09 | 28 6e 6f 74 20 68 69 73 |.(^J)...|(not his|
|000031f0| 74 6f 72 69 63 20 70 72 | 61 63 74 69 63 65 29 0a |toric pr|actice).|
|00003200| 6e 76 69 2e 31 2e 30 33 | 2f 64 6f 63 73 2f 69 6e |nvi.1.03|/docs/in|
|00003210| 70 75 74 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |put.....|........|
|00003220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003260| 00 00 00 00 31 30 30 34 | 34 34 00 00 30 30 33 32 |....1004|44..0032|
|00003270| 37 36 00 00 30 30 30 30 | 31 32 00 00 30 30 30 30 |76..0000|12..0000|
|00003280| 30 30 32 30 37 32 32 00 | 30 35 34 33 37 32 33 34 |0020722.|05437234|
|00003290| 35 37 35 00 30 31 31 32 | 31 31 00 20 30 00 00 00 |575.0112|11. 0...|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003300| 00 33 37 37 37 37 37 37 | 37 30 34 30 00 00 00 00 |.3777777|7040....|
|00003310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003350| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00003360| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 23 09 40 28 23 29 69 6e | 70 75 74 09 35 2e 34 20 |#.@(#)in|put.5.4 |
|00003410| 28 42 65 72 6b 65 6c 65 | 79 29 20 38 2f 32 36 2f |(Berkele|y) 8/26/|
|00003420| 39 33 0a 0a 4d 41 50 53 | 2c 20 45 58 45 43 55 54 |93..MAPS|, EXECUT|
|00003430| 41 42 4c 45 20 42 55 46 | 46 45 52 53 20 41 4e 44 |ABLE BUF|FERS AND|
|00003440| 20 49 4e 50 55 54 20 49 | 4e 20 45 58 2f 56 49 3a | INPUT I|N EX/VI:|
|00003450| 0a 0a 54 68 65 20 62 61 | 73 69 63 20 72 75 6c 65 |..The ba|sic rule|
|00003460| 20 69 73 20 74 68 61 74 | 20 69 6e 70 75 74 20 69 | is that| input i|
|00003470| 6e 20 65 78 2f 76 69 20 | 69 73 20 61 20 73 74 61 |n ex/vi |is a sta|
|00003480| 63 6b 2e 20 20 45 76 65 | 72 79 20 74 69 6d 65 20 |ck. Eve|ry time |
|00003490| 61 20 6b 65 79 20 77 68 | 69 63 68 0a 67 65 74 73 |a key wh|ich.gets|
|000034a0| 20 65 78 70 61 6e 64 65 | 64 20 69 73 20 65 6e 63 | expande|d is enc|
|000034b0| 6f 75 6e 74 65 72 65 64 | 2c 20 69 74 20 69 73 20 |ountered|, it is |
|000034c0| 65 78 70 61 6e 64 65 64 | 20 61 6e 64 20 74 68 65 |expanded| and the|
|000034d0| 20 65 78 70 61 6e 73 69 | 6f 6e 20 69 73 20 74 72 | expansi|on is tr|
|000034e0| 65 61 74 65 64 0a 61 73 | 20 69 66 20 69 74 20 77 |eated.as| if it w|
|000034f0| 65 72 65 20 69 6e 70 75 | 74 20 66 72 6f 6d 20 74 |ere inpu|t from t|
|00003500| 68 65 20 75 73 65 72 2e | 20 20 53 6f 2c 20 6d 61 |he user.| So, ma|
|00003510| 70 73 20 61 6e 64 20 65 | 78 65 63 75 74 61 62 6c |ps and e|xecutabl|
|00003520| 65 20 62 75 66 66 65 72 | 73 20 61 72 65 0a 73 69 |e buffer|s are.si|
|00003530| 6d 70 6c 79 20 70 75 73 | 68 65 64 20 6f 6e 74 6f |mply pus|hed onto|
|00003540| 20 74 68 65 20 73 74 61 | 63 6b 20 66 72 6f 6d 20 | the sta|ck from |
|00003550| 77 68 69 63 68 20 6b 65 | 79 73 20 61 72 65 20 72 |which ke|ys are r|
|00003560| 65 74 75 72 6e 65 64 2e | 20 20 54 68 65 20 65 78 |eturned.| The ex|
|00003570| 63 65 70 74 69 6f 6e 0a | 69 73 20 74 68 61 74 20 |ception.|is that |
|00003580| 69 66 20 74 68 65 20 22 | 72 65 6d 61 70 22 20 6f |if the "|remap" o|
|00003590| 70 74 69 6f 6e 20 69 73 | 20 74 75 72 6e 65 64 20 |ption is| turned |
|000035a0| 6f 66 66 2c 20 6f 6e 6c | 79 20 61 20 73 69 6e 67 |off, onl|y a sing|
|000035b0| 6c 65 20 6d 61 70 20 65 | 78 70 61 6e 73 69 6f 6e |le map e|xpansion|
|000035c0| 0a 69 73 20 64 6f 6e 65 | 2e 20 20 49 20 69 6e 74 |.is done|. I int|
|000035d0| 65 6e 64 20 74 6f 20 62 | 65 20 66 75 6c 6c 79 20 |end to b|e fully |
|000035e0| 62 61 63 6b 77 61 72 64 | 20 63 6f 6d 70 61 74 69 |backward| compati|
|000035f0| 62 6c 65 20 77 69 74 68 | 20 74 68 69 73 2e 0a 0a |ble with| this...|
|00003600| 48 69 73 74 6f 72 69 63 | 61 6c 6c 79 2c 20 69 66 |Historic|ally, if|
|00003610| 20 74 68 65 20 6d 6f 64 | 65 20 6f 66 20 74 68 65 | the mod|e of the|
|00003620| 20 65 64 69 74 6f 72 20 | 63 68 61 6e 67 65 64 20 | editor |changed |
|00003630| 28 65 78 20 74 6f 20 76 | 69 20 6f 72 20 76 69 63 |(ex to v|i or vic|
|00003640| 65 20 76 65 72 73 61 29 | 2c 0a 61 6e 79 20 71 75 |e versa)|,.any qu|
|00003650| 65 75 65 64 20 69 6e 70 | 75 74 20 77 61 73 20 73 |eued inp|ut was s|
|00003660| 69 6c 65 6e 74 6c 79 20 | 64 69 73 63 61 72 64 65 |ilently |discarde|
|00003670| 64 2e 20 20 49 20 64 6f | 6e 27 74 20 73 65 65 20 |d. I do|n't see |
|00003680| 61 6e 79 20 72 65 61 73 | 6f 6e 20 74 6f 20 65 69 |any reas|on to ei|
|00003690| 74 68 65 72 0a 73 75 70 | 70 6f 72 74 20 6f 72 20 |ther.sup|port or |
|000036a0| 6e 6f 74 20 73 75 70 70 | 6f 72 74 20 74 68 69 73 |not supp|ort this|
|000036b0| 20 73 65 6d 61 6e 74 69 | 63 2e 20 20 49 20 69 6e | semanti|c. I in|
|000036c0| 74 65 6e 64 20 74 6f 20 | 72 65 74 61 69 6e 20 74 |tend to |retain t|
|000036d0| 68 65 20 71 75 65 75 65 | 64 20 69 6e 70 75 74 2c |he queue|d input,|
|000036e0| 0a 6d 6f 73 74 6c 79 20 | 62 65 63 61 75 73 65 20 |.mostly |because |
|000036f0| 69 74 27 73 20 73 69 6d | 70 6c 65 72 20 74 68 61 |it's sim|pler tha|
|00003700| 6e 20 74 68 72 6f 77 69 | 6e 67 20 69 74 20 61 77 |n throwi|ng it aw|
|00003710| 61 79 2e 0a 0a 48 69 73 | 74 6f 72 69 63 61 6c 6c |ay...His|toricall|
|00003720| 79 2c 20 6e 65 69 74 68 | 65 72 20 74 68 65 20 69 |y, neith|er the i|
|00003730| 6e 69 74 69 61 6c 20 63 | 6f 6d 6d 61 6e 64 20 6f |nitial c|ommand o|
|00003740| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |n the co|mmand li|
|00003750| 6e 65 20 28 74 68 65 20 | 2b 20 66 6c 61 67 29 0a |ne (the |+ flag).|
|00003760| 6f 72 20 74 68 65 20 2b | 63 6d 64 20 61 73 73 6f |or the +|cmd asso|
|00003770| 63 69 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ciated w|ith the |
|00003780| 65 78 20 61 6e 64 20 65 | 64 69 74 20 63 6f 6d 6d |ex and e|dit comm|
|00003790| 61 6e 64 73 20 77 61 73 | 20 73 75 62 6a 65 63 74 |ands was| subject|
|000037a0| 20 74 6f 20 6d 61 70 70 | 69 6e 67 2e 0a 41 6c 73 | to mapp|ing..Als|
|000037b0| 6f 2c 20 77 68 69 6c 65 | 20 74 68 65 20 2b 63 6d |o, while| the +cm|
|000037c0| 64 20 61 70 70 65 61 72 | 73 20 74 6f 20 62 65 20 |d appear|s to be |
|000037d0| 73 75 62 6a 65 63 74 20 | 74 6f 20 22 40 62 75 66 |subject |to "@buf|
|000037e0| 66 65 72 22 20 65 78 70 | 61 6e 73 69 6f 6e 2c 20 |fer" exp|ansion, |
|000037f0| 6f 6e 63 65 0a 65 78 70 | 61 6e 64 65 64 20 69 74 |once.exp|anded it|
|00003800| 20 64 6f 65 73 6e 27 74 | 20 61 70 70 65 61 72 20 | doesn't| appear |
|00003810| 74 6f 20 77 6f 72 6b 20 | 63 6f 72 72 65 63 74 6c |to work |correctl|
|00003820| 79 2e 20 20 49 20 64 6f | 6e 27 74 20 73 65 65 20 |y. I do|n't see |
|00003830| 61 6e 79 20 72 65 61 73 | 6f 6e 20 74 6f 0a 65 69 |any reas|on to.ei|
|00003840| 74 68 65 72 20 73 75 70 | 70 6f 72 74 20 6f 72 20 |ther sup|port or |
|00003850| 6e 6f 74 20 73 75 70 70 | 6f 72 74 20 74 68 65 73 |not supp|ort thes|
|00003860| 65 20 73 65 6d 61 6e 74 | 69 63 73 2c 20 73 6f 2c |e semant|ics, so,|
|00003870| 20 66 6f 72 20 63 6f 6e | 73 69 73 74 65 6e 63 79 | for con|sistency|
|00003880| 2c 20 49 20 69 6e 74 65 | 6e 64 0a 74 6f 20 70 61 |, I inte|nd.to pa|
|00003890| 73 73 20 62 6f 74 68 20 | 74 68 65 20 69 6e 69 74 |ss both |the init|
|000038a0| 69 61 6c 20 63 6f 6d 6d | 61 6e 64 20 61 6e 64 20 |ial comm|and and |
|000038b0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 61 73 73 6f |the comm|and asso|
|000038c0| 63 69 61 74 65 64 20 77 | 69 74 68 20 65 78 20 61 |ciated w|ith ex a|
|000038d0| 6e 64 20 65 64 69 74 0a | 63 6f 6d 6d 61 6e 64 73 |nd edit.|commands|
|000038e0| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 73 74 61 | through| the sta|
|000038f0| 6e 64 61 72 64 20 6d 61 | 70 70 69 6e 67 20 61 6e |ndard ma|pping an|
|00003900| 64 20 40 20 62 75 66 66 | 65 72 20 65 78 70 61 6e |d @ buff|er expan|
|00003910| 73 69 6f 6e 2e 0a 0a 4f | 6e 65 20 6f 74 68 65 72 |sion...O|ne other|
|00003920| 20 64 69 66 66 65 72 65 | 6e 63 65 20 62 65 74 77 | differe|nce betw|
|00003930| 65 65 6e 20 74 68 65 20 | 68 69 73 74 6f 72 69 63 |een the |historic|
|00003940| 20 65 78 2f 76 69 20 61 | 6e 64 20 6e 65 78 2f 6e | ex/vi a|nd nex/n|
|00003950| 76 69 20 69 73 20 74 68 | 61 74 20 6e 65 78 0a 64 |vi is th|at nex.d|
|00003960| 69 73 70 6c 61 79 73 20 | 74 68 65 20 65 78 65 63 |isplays |the exec|
|00003970| 75 74 65 64 20 62 75 66 | 66 65 72 73 20 61 73 20 |uted buf|fers as |
|00003980| 69 74 20 65 78 65 63 75 | 74 65 73 20 74 68 65 6d |it execu|tes them|
|00003990| 2e 20 20 54 68 69 73 20 | 6d 65 61 6e 73 20 74 68 |. This |means th|
|000039a0| 61 74 20 69 66 0a 74 68 | 65 20 66 69 6c 65 20 69 |at if.th|e file i|
|000039b0| 73 3a 0a 0a 09 73 65 74 | 20 74 65 72 6d 3d 78 74 |s:...set| term=xt|
|000039c0| 65 72 6d 0a 09 73 65 74 | 20 74 65 72 6d 3d 79 74 |erm..set| term=yt|
|000039d0| 65 72 6d 0a 09 73 65 74 | 20 74 65 72 6d 3d 79 74 |erm..set| term=yt|
|000039e0| 65 72 6d 0a 0a 74 68 65 | 20 75 73 65 72 20 77 69 |erm..the| user wi|
|000039f0| 6c 6c 20 73 65 65 20 74 | 68 65 20 66 6f 6c 6c 6f |ll see t|he follo|
|00003a00| 77 69 6e 67 20 64 75 72 | 69 6e 67 20 61 20 74 79 |wing dur|ing a ty|
|00003a10| 70 69 63 61 6c 20 65 64 | 69 74 20 73 65 73 73 69 |pical ed|it sessi|
|00003a20| 6f 6e 3a 0a 0a 09 6e 65 | 78 20 74 65 73 74 66 69 |on:...ne|x testfi|
|00003a30| 6c 65 0a 09 74 65 73 74 | 66 69 6c 65 3a 20 75 6e |le..test|file: un|
|00003a40| 6d 6f 64 69 66 69 65 64 | 3a 20 6c 69 6e 65 20 33 |modified|: line 3|
|00003a50| 0a 09 3a 31 2c 24 79 61 | 6e 6b 20 61 0a 09 3a 40 |..:1,$ya|nk a..:@|
|00003a60| 61 0a 09 3a 73 65 74 20 | 74 65 72 6d 3d 7a 74 65 |a..:set |term=zte|
|00003a70| 72 6d 0a 09 3a 73 65 74 | 20 74 65 72 6d 3d 79 74 |rm..:set| term=yt|
|00003a80| 65 72 6d 0a 09 3a 73 65 | 74 20 74 65 72 6d 3d 78 |erm..:se|t term=x|
|00003a90| 74 65 72 6d 0a 09 3a 71 | 21 0a 0a 54 68 69 73 20 |term..:q|!..This |
|00003aa0| 73 65 65 6d 73 20 6c 69 | 6b 65 20 61 20 66 65 61 |seems li|ke a fea|
|00003ab0| 74 75 72 65 20 61 6e 64 | 20 75 6e 6c 69 6b 65 6c |ture and| unlikel|
|00003ac0| 79 20 74 6f 20 62 72 65 | 61 6b 20 61 6e 79 74 68 |y to bre|ak anyth|
|00003ad0| 69 6e 67 2c 20 73 6f 20 | 49 20 64 6f 6e 27 74 0a |ing, so |I don't.|
|00003ae0| 69 6e 74 65 6e 64 20 74 | 6f 20 6d 61 74 63 68 20 |intend t|o match |
|00003af0| 68 69 73 74 6f 72 69 63 | 20 70 72 61 63 74 69 63 |historic| practic|
|00003b00| 65 20 69 6e 20 74 68 69 | 73 20 61 72 65 61 2e 0a |e in thi|s area..|
|00003b10| 0a 54 68 65 20 72 65 73 | 74 20 6f 66 20 74 68 69 |.The res|t of thi|
|00003b20| 73 20 64 6f 63 75 6d 65 | 6e 74 20 69 73 20 61 20 |s docume|nt is a |
|00003b30| 73 65 74 20 6f 66 20 63 | 6f 6e 63 6c 75 73 69 6f |set of c|onclusio|
|00003b40| 6e 73 20 61 73 20 74 6f | 20 68 6f 77 20 49 20 62 |ns as to| how I b|
|00003b50| 65 6c 69 65 76 65 0a 74 | 68 65 20 68 69 73 74 6f |elieve.t|he histo|
|00003b60| 72 69 63 20 6d 61 70 73 | 20 61 6e 64 20 40 20 62 |ric maps| and @ b|
|00003b70| 75 66 66 65 72 73 20 77 | 6f 72 6b 2e 20 20 54 68 |uffers w|ork. Th|
|00003b80| 65 20 73 75 6d 6d 61 72 | 79 20 69 73 20 61 73 20 |e summar|y is as |
|00003b90| 66 6f 6c 6c 6f 77 73 3a | 0a 0a 31 3a 20 46 6f 72 |follows:|..1: For|
|00003ba0| 20 62 75 66 66 65 72 73 | 20 74 68 61 74 20 61 72 | buffers| that ar|
|00003bb0| 65 20 63 75 74 20 69 6e | 20 22 6c 69 6e 65 20 6d |e cut in| "line m|
|00003bc0| 6f 64 65 22 2c 20 6f 72 | 20 62 75 66 66 65 72 73 |ode", or| buffers|
|00003bd0| 20 74 68 61 74 20 61 72 | 65 20 6e 6f 74 20 63 75 | that ar|e not cu|
|00003be0| 74 0a 20 20 20 69 6e 20 | 6c 69 6e 65 20 6d 6f 64 |t. in |line mod|
|00003bf0| 65 20 62 75 74 20 77 68 | 69 63 68 20 63 6f 6e 74 |e but wh|ich cont|
|00003c00| 61 69 6e 20 70 6f 72 74 | 69 6f 6e 73 20 6f 66 20 |ain port|ions of |
|00003c10| 6d 6f 72 65 20 74 68 61 | 6e 20 61 20 73 69 6e 67 |more tha|n a sing|
|00003c20| 6c 65 20 6c 69 6e 65 2c | 20 61 0a 20 20 20 74 72 |le line,| a. tr|
|00003c30| 61 69 6c 69 6e 67 20 3c | 6e 65 77 6c 69 6e 65 3e |ailing <|newline>|
|00003c40| 20 63 68 61 72 61 63 74 | 65 72 20 61 70 70 65 61 | charact|er appea|
|00003c50| 72 73 20 69 6e 20 74 68 | 65 20 69 6e 70 75 74 20 |rs in th|e input |
|00003c60| 66 6f 72 20 65 61 63 68 | 20 6c 69 6e 65 20 69 6e |for each| line in|
|00003c70| 20 74 68 65 0a 20 20 20 | 62 75 66 66 65 72 20 77 | the. |buffer w|
|00003c80| 68 65 6e 20 69 74 20 69 | 73 20 65 78 65 63 75 74 |hen it i|s execut|
|00003c90| 65 64 2e 20 20 46 6f 72 | 20 62 75 66 66 65 72 73 |ed. For| buffers|
|00003ca0| 20 6e 6f 74 20 63 75 74 | 20 69 6e 20 6c 69 6e 65 | not cut| in line|
|00003cb0| 20 6d 6f 64 65 20 61 6e | 64 20 77 68 69 63 68 0a | mode an|d which.|
|00003cc0| 20 20 20 63 6f 6e 74 61 | 69 6e 20 70 6f 72 74 69 | conta|in porti|
|00003cd0| 6f 6e 73 20 6f 66 20 6f | 6e 6c 79 20 61 20 73 69 |ons of o|nly a si|
|00003ce0| 6e 67 6c 65 20 6c 69 6e | 65 2c 20 6e 6f 20 61 64 |ngle lin|e, no ad|
|00003cf0| 64 69 74 69 6f 6e 61 6c | 20 63 68 61 72 61 63 74 |ditional| charact|
|00003d00| 65 72 73 0a 20 20 20 61 | 70 70 65 61 72 20 69 6e |ers. a|ppear in|
|00003d10| 20 74 68 65 20 69 6e 70 | 75 74 2e 0a 32 3a 20 45 | the inp|ut..2: E|
|00003d20| 78 65 63 75 74 61 62 6c | 65 20 62 75 66 66 65 72 |xecutabl|e buffer|
|00003d30| 73 20 74 68 61 74 20 65 | 78 65 63 75 74 65 20 6f |s that e|xecute o|
|00003d40| 74 68 65 72 20 62 75 66 | 66 65 72 73 20 64 6f 6e |ther buf|fers don|
|00003d50| 27 74 20 6c 6f 61 64 20 | 74 68 65 69 72 0a 20 20 |'t load |their. |
|00003d60| 20 63 6f 6e 74 65 6e 74 | 73 20 75 6e 74 69 6c 20 | content|s until |
|00003d70| 74 68 65 79 20 65 78 65 | 63 75 74 65 20 74 68 65 |they exe|cute the|
|00003d80| 6d 2e 0a 33 3a 20 4d 61 | 70 73 20 61 6e 64 20 65 |m..3: Ma|ps and e|
|00003d90| 78 65 63 75 74 61 62 6c | 65 20 62 75 66 66 65 72 |xecutabl|e buffer|
|00003da0| 73 20 61 72 65 20 63 6f | 70 69 65 64 20 77 68 65 |s are co|pied whe|
|00003db0| 6e 20 74 68 65 79 20 61 | 72 65 20 65 78 65 63 75 |n they a|re execu|
|00003dc0| 74 65 64 20 2d 2d 0a 20 | 20 20 74 68 65 79 20 63 |ted --. | they c|
|00003dd0| 61 6e 20 62 65 20 6d 6f | 64 69 66 69 65 64 20 62 |an be mo|dified b|
|00003de0| 79 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 62 75 |y the co|mmand bu|
|00003df0| 74 20 74 68 61 74 20 64 | 6f 65 73 20 6e 6f 74 20 |t that d|oes not |
|00003e00| 63 68 61 6e 67 65 20 74 | 68 65 69 72 0a 20 20 20 |change t|heir. |
|00003e10| 61 63 74 69 6f 6e 73 2e | 0a 34 3a 20 48 69 73 74 |actions.|.4: Hist|
|00003e20| 6f 72 69 63 61 6c 6c 79 | 2c 20 65 78 65 63 75 74 |orically|, execut|
|00003e30| 61 62 6c 65 20 62 75 66 | 66 65 72 73 20 61 72 65 |able buf|fers are|
|00003e40| 20 64 69 73 63 61 72 64 | 65 64 20 69 66 20 74 68 | discard|ed if th|
|00003e50| 65 20 65 64 69 74 6f 72 | 0a 20 20 20 73 77 69 74 |e editor|. swit|
|00003e60| 63 68 65 73 20 62 65 74 | 77 65 65 6e 20 65 78 20 |ches bet|ween ex |
|00003e70| 61 6e 64 20 76 69 20 6d | 6f 64 65 73 2e 0a 35 3a |and vi m|odes..5:|
|00003e80| 20 45 78 65 63 75 74 61 | 62 6c 65 20 62 75 66 66 | Executa|ble buff|
|00003e90| 65 72 73 20 69 6e 73 69 | 64 65 20 6f 66 20 6d 61 |ers insi|de of ma|
|00003ea0| 70 20 63 6f 6d 6d 61 6e | 64 73 20 61 72 65 20 65 |p comman|ds are e|
|00003eb0| 78 70 61 6e 64 65 64 20 | 6e 6f 72 6d 61 6c 6c 79 |xpanded |normally|
|00003ec0| 2e 0a 20 20 20 4d 61 70 | 73 20 69 6e 73 69 64 65 |.. Map|s inside|
|00003ed0| 20 6f 66 20 65 78 65 63 | 75 74 61 62 6c 65 20 62 | of exec|utable b|
|00003ee0| 75 66 66 65 72 73 20 61 | 72 65 20 65 78 70 61 6e |uffers a|re expan|
|00003ef0| 64 65 64 20 6e 6f 72 6d | 61 6c 6c 79 2e 0a 36 3a |ded norm|ally..6:|
|00003f00| 20 49 66 20 61 6e 20 65 | 72 72 6f 72 20 69 73 20 | If an e|rror is |
|00003f10| 65 6e 63 6f 75 6e 74 65 | 72 65 64 20 77 68 69 6c |encounte|red whil|
|00003f20| 65 20 65 78 65 63 75 74 | 69 6e 67 20 61 20 6d 61 |e execut|ing a ma|
|00003f30| 70 70 65 64 20 63 6f 6d | 6d 61 6e 64 20 6f 72 20 |pped com|mand or |
|00003f40| 62 75 66 66 65 72 2c 0a | 20 20 20 74 68 65 20 72 |buffer,.| the r|
|00003f50| 65 73 74 20 6f 66 20 74 | 68 65 20 6d 61 70 70 65 |est of t|he mappe|
|00003f60| 64 20 63 6f 6d 6d 61 6e | 64 2f 62 75 66 66 65 72 |d comman|d/buffer|
|00003f70| 20 69 73 20 64 69 73 63 | 61 72 64 65 64 2e 20 20 | is disc|arded. |
|00003f80| 4e 6f 20 75 73 65 72 20 | 69 6e 70 75 74 0a 20 20 |No user |input. |
|00003f90| 20 63 68 61 72 61 63 74 | 65 72 73 20 61 72 65 20 | charact|ers are |
|00003fa0| 64 69 73 63 61 72 64 65 | 64 2e 0a 0a 49 6e 64 69 |discarde|d...Indi|
|00003fb0| 76 69 64 75 61 6c 20 74 | 65 73 74 20 63 61 73 65 |vidual t|est case|
|00003fc0| 73 20 66 6f 6c 6c 6f 77 | 2e 20 20 4e 6f 74 65 2c |s follow|. Note,|
|00003fd0| 20 69 6e 20 74 68 65 20 | 74 65 73 74 20 63 61 73 | in the |test cas|
|00003fe0| 65 73 2c 20 63 6f 6e 74 | 72 6f 6c 20 63 68 61 72 |es, cont|rol char|
|00003ff0| 61 63 74 65 72 73 0a 61 | 72 65 20 6e 6f 74 20 6c |acters.a|re not l|
|00004000| 69 74 65 72 61 6c 20 61 | 6e 64 20 77 69 6c 6c 20 |iteral a|nd will |
|00004010| 68 61 76 65 20 74 6f 20 | 62 65 20 72 65 70 6c 61 |have to |be repla|
|00004020| 63 65 64 20 74 6f 20 6d | 61 6b 65 20 74 68 65 20 |ced to m|ake the |
|00004030| 74 65 73 74 20 63 61 73 | 65 73 20 77 6f 72 6b 2e |test cas|es work.|
|00004040| 0a 0a 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |..=-=-=-|=-=-=-=-|
|00004050| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00004060| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00004070| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00004080| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 0a 31 3a 20 46 |=-=-=-=-|=-=.1: F|
|00004090| 6f 72 20 62 75 66 66 65 | 72 73 20 74 68 61 74 20 |or buffe|rs that |
|000040a0| 61 72 65 20 63 75 74 20 | 69 6e 20 22 6c 69 6e 65 |are cut |in "line|
|000040b0| 20 6d 6f 64 65 22 2c 20 | 6f 72 20 62 75 66 66 65 | mode", |or buffe|
|000040c0| 72 73 20 74 68 61 74 20 | 61 72 65 20 6e 6f 74 20 |rs that |are not |
|000040d0| 63 75 74 0a 20 20 20 69 | 6e 20 6c 69 6e 65 20 6d |cut. i|n line m|
|000040e0| 6f 64 65 20 62 75 74 20 | 77 68 69 63 68 20 63 6f |ode but |which co|
|000040f0| 6e 74 61 69 6e 20 70 6f | 72 74 69 6f 6e 73 20 6f |ntain po|rtions o|
|00004100| 66 20 6d 6f 72 65 20 74 | 68 61 6e 20 61 20 73 69 |f more t|han a si|
|00004110| 6e 67 6c 65 20 6c 69 6e | 65 2c 20 61 0a 20 20 20 |ngle lin|e, a. |
|00004120| 74 72 61 69 6c 69 6e 67 | 20 3c 6e 65 77 6c 69 6e |trailing| <newlin|
|00004130| 65 3e 20 63 68 61 72 61 | 63 74 65 72 20 61 70 70 |e> chara|cter app|
|00004140| 65 61 72 73 20 69 6e 20 | 74 68 65 20 69 6e 70 75 |ears in |the inpu|
|00004150| 74 20 66 6f 72 20 65 61 | 63 68 20 6c 69 6e 65 20 |t for ea|ch line |
|00004160| 69 6e 20 74 68 65 0a 20 | 20 20 62 75 66 66 65 72 |in the. | buffer|
|00004170| 20 77 68 65 6e 20 69 74 | 20 69 73 20 65 78 65 63 | when it| is exec|
|00004180| 75 74 65 64 2e 20 20 46 | 6f 72 20 62 75 66 66 65 |uted. F|or buffe|
|00004190| 72 73 20 6e 6f 74 20 63 | 75 74 20 69 6e 20 6c 69 |rs not c|ut in li|
|000041a0| 6e 65 20 6d 6f 64 65 20 | 61 6e 64 20 77 68 69 63 |ne mode |and whic|
|000041b0| 68 0a 20 20 20 63 6f 6e | 74 61 69 6e 20 70 6f 72 |h. con|tain por|
|000041c0| 74 69 6f 6e 73 20 6f 66 | 20 6f 6e 6c 79 20 61 20 |tions of| only a |
|000041d0| 73 69 6e 67 6c 65 20 6c | 69 6e 65 2c 20 6e 6f 20 |single l|ine, no |
|000041e0| 61 64 64 69 74 69 6f 6e | 61 6c 20 63 68 61 72 61 |addition|al chara|
|000041f0| 63 74 65 72 73 0a 20 20 | 20 61 70 70 65 61 72 20 |cters. | appear |
|00004200| 69 6e 20 74 68 65 20 69 | 6e 70 75 74 2e 0a 0a 3d |in the i|nput...=|
|00004210| 3d 3d 20 20 20 74 65 73 | 74 20 66 69 6c 65 20 20 |== tes|t file |
|00004220| 20 3d 3d 3d 0a 33 47 77 | 0a 77 0a 6c 69 6e 65 20 | ===.3Gw|.w.line |
|00004230| 31 20 66 6f 6f 20 62 61 | 72 20 62 61 7a 0a 6c 69 |1 foo ba|r baz.li|
|00004240| 6e 65 20 32 20 66 6f 6f | 20 62 61 72 20 62 61 7a |ne 2 foo| bar baz|
|00004250| 0a 6c 69 6e 65 20 33 20 | 66 6f 6f 20 62 61 72 20 |.line 3 |foo bar |
|00004260| 62 61 7a 0a 3d 3d 3d 20 | 65 6e 64 20 74 65 73 74 |baz.=== |end test|
|00004270| 20 66 69 6c 65 20 3d 3d | 3d 0a 0a 20 20 20 49 66 | file ==|=.. If|
|00004280| 20 74 68 65 20 66 69 72 | 73 74 20 6c 69 6e 65 20 | the fir|st line |
|00004290| 69 73 20 6c 6f 61 64 65 | 64 20 69 6e 74 6f 20 27 |is loade|d into '|
|000042a0| 61 27 20 61 6e 64 20 65 | 78 65 63 75 74 65 64 3a |a' and e|xecuted:|
|000042b0| 0a 0a 31 47 22 61 79 79 | 40 61 0a 0a 20 20 20 54 |..1G"ayy|@a.. T|
|000042c0| 68 65 20 63 75 72 73 6f | 72 20 65 6e 64 73 20 75 |he curso|r ends u|
|000042d0| 70 20 6f 6e 20 74 68 65 | 20 27 32 27 2c 20 61 20 |p on the| '2', a |
|000042e0| 72 65 73 75 6c 74 20 6f | 66 20 70 75 73 68 69 6e |result o|f pushin|
|000042f0| 67 20 22 33 47 77 5e 4a | 22 20 6f 6e 74 6f 0a 20 |g "3Gw^J|" onto. |
|00004300| 20 20 74 68 65 20 73 74 | 61 63 6b 2e 0a 0a 20 20 | the st|ack... |
|00004310| 20 49 66 20 74 68 65 20 | 66 69 72 73 74 20 74 77 | If the |first tw|
|00004320| 6f 20 6c 69 6e 65 73 20 | 61 72 65 20 6c 6f 61 64 |o lines |are load|
|00004330| 65 64 20 69 6e 74 6f 20 | 27 61 27 20 61 6e 64 20 |ed into |'a' and |
|00004340| 65 78 65 63 75 74 65 64 | 3a 0a 0a 31 47 32 22 61 |executed|:..1G2"a|
|00004350| 79 79 40 61 0a 0a 20 20 | 20 54 68 65 20 63 75 72 |yy@a.. | The cur|
|00004360| 73 6f 72 20 65 6e 64 73 | 20 75 70 20 6f 6e 20 74 |sor ends| up on t|
|00004370| 68 65 20 27 66 27 20 69 | 6e 20 22 66 6f 6f 22 20 |he 'f' i|n "foo" |
|00004380| 69 6e 20 74 68 65 20 66 | 69 66 74 68 20 6c 69 6e |in the f|ifth lin|
|00004390| 65 20 6f 66 20 74 68 65 | 0a 20 20 20 66 69 6c 65 |e of the|. file|
|000043a0| 2c 20 61 20 72 65 73 75 | 6c 74 20 6f 66 20 70 75 |, a resu|lt of pu|
|000043b0| 73 68 69 6e 67 20 22 33 | 47 77 5e 4a 77 5e 4a 22 |shing "3|Gw^Jw^J"|
|000043c0| 20 6f 6e 74 6f 20 74 68 | 65 20 73 74 61 63 6b 2e | onto th|e stack.|
|000043d0| 0a 0a 20 20 20 49 66 20 | 74 68 65 20 66 69 72 73 |.. If |the firs|
|000043e0| 74 20 6c 69 6e 65 20 69 | 73 20 6c 6f 61 64 65 64 |t line i|s loaded|
|000043f0| 20 69 6e 74 6f 20 27 61 | 27 2c 20 62 75 74 20 6e | into 'a|', but n|
|00004400| 6f 74 20 75 73 69 6e 67 | 20 6c 69 6e 65 20 6d 6f |ot using| line mo|
|00004410| 64 65 2c 0a 20 20 20 61 | 6e 64 20 65 78 65 63 75 |de,. a|nd execu|
|00004420| 74 65 64 3a 0a 0a 31 47 | 22 61 79 24 40 61 0a 0a |ted:..1G|"ay$@a..|
|00004430| 20 20 20 54 68 65 20 63 | 75 72 73 6f 72 20 65 6e | The c|ursor en|
|00004440| 64 73 20 75 70 20 6f 6e | 20 74 68 65 20 27 31 27 |ds up on| the '1'|
|00004450| 2c 20 61 20 72 65 73 75 | 6c 74 20 6f 66 20 70 75 |, a resu|lt of pu|
|00004460| 73 68 69 6e 67 20 22 33 | 47 77 22 20 6f 6e 74 6f |shing "3|Gw" onto|
|00004470| 0a 20 20 20 74 68 65 20 | 73 74 61 63 6b 0a 0a 20 |. the |stack.. |
|00004480| 20 20 49 66 20 74 68 65 | 20 66 69 72 73 74 20 74 | If the| first t|
|00004490| 77 6f 20 6c 69 6e 65 73 | 20 61 72 65 20 6c 6f 61 |wo lines| are loa|
|000044a0| 64 65 64 20 69 6e 74 6f | 20 27 61 27 2c 20 62 75 |ded into| 'a', bu|
|000044b0| 74 20 6e 6f 74 20 75 73 | 69 6e 67 20 6c 69 6e 65 |t not us|ing line|
|000044c0| 20 6d 6f 64 65 2c 0a 20 | 20 20 61 6e 64 20 65 78 | mode,. | and ex|
|000044d0| 65 63 75 74 65 64 3a 0a | 0a 31 47 32 22 61 79 24 |ecuted:.|.1G2"ay$|
|000044e0| 40 61 0a 0a 20 20 20 54 | 68 65 20 63 75 72 73 6f |@a.. T|he curso|
|000044f0| 72 20 65 6e 64 73 20 75 | 70 20 6f 6e 20 74 68 65 |r ends u|p on the|
|00004500| 20 27 66 27 20 69 6e 20 | 22 66 6f 6f 22 20 69 6e | 'f' in |"foo" in|
|00004510| 20 74 68 65 20 66 69 66 | 74 68 20 6c 69 6e 65 20 | the fif|th line |
|00004520| 6f 66 20 74 68 65 0a 20 | 20 20 66 69 6c 65 2c 20 |of the. | file, |
|00004530| 61 20 72 65 73 75 6c 74 | 20 6f 66 20 70 75 73 68 |a result| of push|
|00004540| 69 6e 67 20 22 33 47 77 | 5e 4a 77 5e 4a 22 20 6f |ing "3Gw|^Jw^J" o|
|00004550| 6e 74 6f 20 74 68 65 20 | 73 74 61 63 6b 2e 0a 0a |nto the |stack...|
|00004560| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00004570| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00004580| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00004590| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|000045a0| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 0a 32 3a 20 45 78 65 |=-=-=-=-|=.2: Exe|
|000045b0| 63 75 74 61 62 6c 65 20 | 62 75 66 66 65 72 73 20 |cutable |buffers |
|000045c0| 74 68 61 74 20 65 78 65 | 63 75 74 65 20 6f 74 68 |that exe|cute oth|
|000045d0| 65 72 20 62 75 66 66 65 | 72 73 20 64 6f 6e 27 74 |er buffe|rs don't|
|000045e0| 20 6c 6f 61 64 20 74 68 | 65 69 72 0a 20 20 20 63 | load th|eir. c|
|000045f0| 6f 6e 74 65 6e 74 73 20 | 75 6e 74 69 6c 20 74 68 |ontents |until th|
|00004600| 65 79 20 65 78 65 63 75 | 74 65 20 74 68 65 6d 2e |ey execu|te them.|
|00004610| 0a 0a 3d 3d 3d 20 20 20 | 74 65 73 74 20 66 69 6c |..=== |test fil|
|00004620| 65 20 20 20 3d 3d 3d 0a | 63 77 4c 4f 41 44 20 42 |e ===.|cwLOAD B|
|00004630| 5e 5b 0a 6c 69 6e 65 20 | 31 20 66 6f 6f 20 62 61 |^[.line |1 foo ba|
|00004640| 72 20 62 61 7a 0a 6c 69 | 6e 65 20 32 20 66 6f 6f |r baz.li|ne 2 foo|
|00004650| 20 62 61 72 20 62 61 7a | 0a 6c 69 6e 65 20 33 20 | bar baz|.line 3 |
|00004660| 66 6f 6f 20 62 61 72 20 | 62 61 7a 0a 40 61 40 62 |foo bar |baz.@a@b|
|00004670| 0a 22 62 79 79 0a 3d 3d | 3d 20 65 6e 64 20 74 65 |."byy.==|= end te|
|00004680| 73 74 20 66 69 6c 65 20 | 3d 3d 3d 0a 0a 20 20 20 |st file |===.. |
|00004690| 54 68 65 20 63 6f 6d 6d | 61 6e 64 20 69 73 20 6c |The comm|and is l|
|000046a0| 6f 61 64 65 64 20 69 6e | 74 6f 20 27 65 27 2c 20 |oaded in|to 'e', |
|000046b0| 61 6e 64 20 74 68 65 6e | 20 65 78 65 63 75 74 65 |and then| execute|
|000046c0| 64 2e 20 20 27 65 27 20 | 65 78 65 63 75 74 65 73 |d. 'e' |executes|
|000046d0| 0a 20 20 20 27 61 27 2c | 20 77 68 69 63 68 20 6c |. 'a',| which l|
|000046e0| 6f 61 64 73 20 27 62 27 | 2c 20 74 68 65 6e 20 27 |oads 'b'|, then '|
|000046f0| 65 27 20 65 78 65 63 75 | 74 65 73 20 27 62 27 2e |e' execu|tes 'b'.|
|00004700| 0a 0a 35 47 22 65 79 79 | 36 47 22 61 79 79 31 47 |..5G"eyy|6G"ayy1G|
|00004710| 40 65 0a 0a 20 20 20 54 | 68 65 20 6f 75 74 70 75 |@e.. T|he outpu|
|00004720| 74 20 73 68 6f 75 6c 64 | 20 62 65 3a 0a 0a 3d 3d |t should| be:..==|
|00004730| 3d 20 20 20 6f 75 74 70 | 75 74 20 66 69 6c 65 20 |= outp|ut file |
|00004740| 20 20 3d 3d 3d 0a 63 77 | 4c 4f 41 44 20 42 5e 5b | ===.cw|LOAD B^[|
|00004750| 0a 4c 4f 41 44 20 42 20 | 31 20 66 6f 6f 20 62 61 |.LOAD B |1 foo ba|
|00004760| 72 20 62 61 7a 0a 6c 69 | 6e 65 20 32 20 66 6f 6f |r baz.li|ne 2 foo|
|00004770| 20 62 61 72 20 62 61 7a | 0a 6c 69 6e 65 20 33 20 | bar baz|.line 3 |
|00004780| 66 6f 6f 20 62 61 72 20 | 62 61 7a 0a 40 61 40 62 |foo bar |baz.@a@b|
|00004790| 0a 22 62 79 79 0a 3d 3d | 3d 20 65 6e 64 20 6f 75 |."byy.==|= end ou|
|000047a0| 74 70 75 74 20 66 69 6c | 65 20 3d 3d 3d 0a 0a 3d |tput fil|e ===..=|
|000047b0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|000047c0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|000047d0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|000047e0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|000047f0| 2d 3d 2d 3d 2d 3d 2d 3d | 0a 33 3a 20 4d 61 70 73 |-=-=-=-=|.3: Maps|
|00004800| 20 61 6e 64 20 65 78 65 | 63 75 74 61 62 6c 65 20 | and exe|cutable |
|00004810| 62 75 66 66 65 72 73 20 | 61 72 65 20 63 6f 70 69 |buffers |are copi|
|00004820| 65 64 20 77 68 65 6e 20 | 74 68 65 79 20 61 72 65 |ed when |they are|
|00004830| 20 65 78 65 63 75 74 65 | 64 20 2d 2d 0a 20 20 20 | execute|d --. |
|00004840| 74 68 65 79 20 63 61 6e | 20 62 65 20 6d 6f 64 69 |they can| be modi|
|00004850| 66 69 65 64 20 62 79 20 | 74 68 65 20 63 6f 6d 6d |fied by |the comm|
|00004860| 61 6e 64 20 62 75 74 20 | 74 68 61 74 20 64 6f 65 |and but |that doe|
|00004870| 73 20 6e 6f 74 20 63 68 | 61 6e 67 65 20 74 68 65 |s not ch|ange the|
|00004880| 69 72 0a 20 20 20 61 63 | 74 69 6f 6e 73 2e 0a 0a |ir. ac|tions...|
|00004890| 20 20 20 45 78 65 63 75 | 74 61 62 6c 65 20 62 75 | Execu|table bu|
|000048a0| 66 66 65 72 73 3a 0a 0a | 3d 3d 3d 20 20 20 74 65 |ffers:..|=== te|
|000048b0| 73 74 20 66 69 6c 65 20 | 20 20 3d 3d 3d 0a 6c 69 |st file | ===.li|
|000048c0| 6e 65 20 31 20 66 6f 6f | 20 62 61 72 20 62 61 7a |ne 1 foo| bar baz|
|000048d0| 0a 6c 69 6e 65 20 32 20 | 66 6f 6f 20 62 61 72 20 |.line 2 |foo bar |
|000048e0| 62 61 7a 0a 6c 69 6e 65 | 20 33 20 66 6f 6f 20 62 |baz.line| 3 foo b|
|000048f0| 61 72 20 62 61 7a 0a 40 | 61 40 62 0a 22 65 79 79 |ar baz.@|a@b."eyy|
|00004900| 0a 63 77 45 58 45 43 55 | 54 45 20 42 5e 5b 0a 3d |.cwEXECU|TE B^[.=|
|00004910| 3d 3d 20 65 6e 64 20 74 | 65 73 74 20 66 69 6c 65 |== end t|est file|
|00004920| 20 3d 3d 3d 0a 0a 34 47 | 22 65 79 79 35 47 22 61 | ===..4G|"eyy5G"a|
|00004930| 79 79 36 47 22 62 79 79 | 31 47 40 65 47 22 65 70 |yy6G"byy|1G@eG"ep|
|00004940| 0a 0a 20 20 20 54 68 65 | 20 63 6f 6d 6d 61 6e 64 |.. The| command|
|00004950| 20 69 73 20 6c 6f 61 64 | 65 64 20 69 6e 74 6f 20 | is load|ed into |
|00004960| 27 65 27 2c 20 61 6e 64 | 20 74 68 65 6e 20 65 78 |'e', and| then ex|
|00004970| 65 63 75 74 65 64 2e 20 | 20 27 65 27 20 65 78 65 |ecuted. | 'e' exe|
|00004980| 63 75 74 65 73 0a 20 20 | 20 27 61 27 2c 20 77 68 |cutes. | 'a', wh|
|00004990| 69 63 68 20 6c 6f 61 64 | 73 20 27 65 27 2c 20 74 |ich load|s 'e', t|
|000049a0| 68 65 6e 20 27 65 27 20 | 65 78 65 63 75 74 65 73 |hen 'e' |executes|
|000049b0| 20 27 62 27 20 61 6e 79 | 77 61 79 2e 0a 0a 20 20 | 'b' any|way... |
|000049c0| 20 54 68 65 20 6f 75 74 | 70 75 74 20 73 68 6f 75 | The out|put shou|
|000049d0| 6c 64 20 62 65 3a 0a 0a | 3d 3d 3d 20 20 20 6f 75 |ld be:..|=== ou|
|000049e0| 74 70 75 74 20 66 69 6c | 65 20 20 20 3d 3d 3d 0a |tput fil|e ===.|
|000049f0| 6c 69 6e 65 20 31 20 66 | 6f 6f 20 62 61 72 20 62 |line 1 f|oo bar b|
|00004a00| 61 7a 0a 45 58 45 43 55 | 54 45 20 42 20 32 20 66 |az.EXECU|TE B 2 f|
|00004a10| 6f 6f 20 62 61 72 20 62 | 61 7a 0a 6c 69 6e 65 20 |oo bar b|az.line |
|00004a20| 33 20 66 6f 6f 20 62 61 | 72 20 62 61 7a 0a 40 61 |3 foo ba|r baz.@a|
|00004a30| 40 62 0a 22 65 79 79 0a | 63 77 45 58 45 43 55 54 |@b."eyy.|cwEXECUT|
|00004a40| 45 20 42 5e 5b 0a 6c 69 | 6e 65 20 31 20 66 6f 6f |E B^[.li|ne 1 foo|
|00004a50| 20 62 61 72 20 62 61 7a | 0a 3d 3d 3d 20 65 6e 64 | bar baz|.=== end|
|00004a60| 20 6f 75 74 70 75 74 20 | 66 69 6c 65 20 3d 3d 3d | output |file ===|
|00004a70| 0a 0a 20 20 20 4d 61 70 | 73 3a 0a 0a 3d 3d 3d 20 |.. Map|s:..=== |
|00004a80| 20 20 74 65 73 74 20 66 | 69 6c 65 20 20 20 3d 3d | test f|ile ==|
|00004a90| 3d 0a 43 69 6e 65 20 31 | 20 66 6f 6f 20 62 61 72 |=.Cine 1| foo bar|
|00004aa0| 20 62 61 7a 0a 6c 69 6e | 65 20 32 20 66 6f 6f 20 | baz.lin|e 2 foo |
|00004ab0| 62 61 72 20 62 61 7a 0a | 6c 69 6e 65 20 33 20 66 |bar baz.|line 3 f|
|00004ac0| 6f 6f 20 62 61 72 20 62 | 61 7a 0a 3d 3d 3d 20 65 |oo bar b|az.=== e|
|00004ad0| 6e 64 20 74 65 73 74 20 | 66 69 6c 65 20 3d 3d 3d |nd test |file ===|
|00004ae0| 0a 0a 20 20 20 45 6e 74 | 65 72 69 6e 67 20 74 68 |.. Ent|ering th|
|00004af0| 65 20 63 6f 6d 6d 61 6e | 64 20 27 3a 6d 61 70 20 |e comman|d ':map |
|00004b00| 3d 20 3a 6d 61 70 20 3d | 20 72 42 5e 56 5e 4d 72 |= :map =| rB^V^Mr|
|00004b10| 41 5e 4d 31 47 3d 3d 27 | 20 73 68 6f 77 73 20 74 |A^M1G=='| shows t|
|00004b20| 68 61 74 0a 20 20 20 74 | 68 65 20 66 69 72 73 74 |hat. t|he first|
|00004b30| 20 74 69 6d 65 20 74 68 | 65 20 27 3d 27 20 69 73 | time th|e '=' is|
|00004b40| 20 65 6e 74 65 72 65 64 | 20 74 68 65 20 27 3d 27 | entered| the '='|
|00004b50| 20 6d 61 70 20 69 73 20 | 73 65 74 20 61 6e 64 20 | map is |set and |
|00004b60| 74 68 65 0a 20 20 20 63 | 68 61 72 61 63 74 65 72 |the. c|haracter|
|00004b70| 20 69 73 20 63 68 61 6e | 67 65 64 20 74 6f 20 27 | is chan|ged to '|
|00004b80| 41 27 2c 20 74 68 65 20 | 73 65 63 6f 6e 64 20 74 |A', the |second t|
|00004b90| 69 6d 65 20 74 68 65 20 | 63 68 61 72 61 63 74 65 |ime the |characte|
|00004ba0| 72 20 69 73 0a 20 20 20 | 63 68 61 6e 67 65 64 20 |r is. |changed |
|00004bb0| 74 6f 20 27 42 27 2e 0a | 0a 3d 2d 3d 2d 3d 2d 3d |to 'B'..|.=-=-=-=|
|00004bc0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|00004bd0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|00004be0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|00004bf0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|00004c00| 2d 3d 0a 34 3a 20 48 69 | 73 74 6f 72 69 63 61 6c |-=.4: Hi|storical|
|00004c10| 6c 79 2c 20 65 78 65 63 | 75 74 61 62 6c 65 20 62 |ly, exec|utable b|
|00004c20| 75 66 66 65 72 73 20 61 | 72 65 20 64 69 73 63 61 |uffers a|re disca|
|00004c30| 72 64 65 64 20 69 66 20 | 74 68 65 20 65 64 69 74 |rded if |the edit|
|00004c40| 6f 72 0a 20 20 20 73 77 | 69 74 63 68 65 73 20 62 |or. sw|itches b|
|00004c50| 65 74 77 65 65 6e 20 65 | 78 20 61 6e 64 20 76 69 |etween e|x and vi|
|00004c60| 20 6d 6f 64 65 73 2e 0a | 0a 3d 3d 3d 20 20 20 74 | modes..|.=== t|
|00004c70| 65 73 74 20 66 69 6c 65 | 20 20 20 3d 3d 3d 0a 6c |est file| ===.l|
|00004c80| 69 6e 65 20 31 20 66 6f | 6f 20 62 61 72 20 62 61 |ine 1 fo|o bar ba|
|00004c90| 7a 0a 6c 69 6e 65 20 32 | 20 66 6f 6f 20 62 61 72 |z.line 2| foo bar|
|00004ca0| 20 62 61 7a 0a 6c 69 6e | 65 20 33 20 66 6f 6f 20 | baz.lin|e 3 foo |
|00004cb0| 62 61 72 20 62 61 7a 0a | 63 77 43 48 41 4e 47 45 |bar baz.|cwCHANGE|
|00004cc0| 5e 5b 51 3a 73 65 74 0a | 73 65 74 7c 76 69 73 75 |^[Q:set.|set|visu|
|00004cd0| 61 6c 7c 31 47 77 77 77 | 0a 3d 3d 3d 20 65 6e 64 |al|1Gwww|.=== end|
|00004ce0| 20 74 65 73 74 20 66 69 | 6c 65 20 3d 3d 3d 0a 0a | test fi|le ===..|
|00004cf0| 76 69 20 74 65 73 74 66 | 69 6c 65 0a 34 47 22 61 |vi testf|ile.4G"a|
|00004d00| 79 79 40 61 0a 0a 65 78 | 20 74 65 73 74 66 69 6c |yy@a..ex| testfil|
|00004d10| 65 0a 24 70 0a 79 61 6e | 6b 20 61 0a 40 61 0a 0a |e.$p.yan|k a.@a..|
|00004d20| 20 20 20 49 6e 20 76 69 | 2c 20 74 68 65 20 63 6f | In vi|, the co|
|00004d30| 6d 6d 61 6e 64 20 69 73 | 20 6c 6f 61 64 65 64 20 |mmand is| loaded |
|00004d40| 69 6e 74 6f 20 27 61 27 | 20 61 6e 64 20 74 68 65 |into 'a'| and the|
|00004d50| 6e 20 65 78 65 63 75 74 | 65 64 2e 20 20 54 68 65 |n execut|ed. The|
|00004d60| 20 63 6f 6d 6d 61 6e 64 | 0a 20 20 20 73 75 62 73 | command|. subs|
|00004d70| 65 71 75 65 6e 74 20 74 | 6f 20 74 68 65 20 27 51 |equent t|o the 'Q|
|00004d80| 27 20 69 73 20 28 68 69 | 73 74 6f 72 69 63 61 6c |' is (hi|storical|
|00004d90| 6c 79 2c 20 73 69 6c 65 | 6e 74 6c 79 29 20 64 69 |ly, sile|ntly) di|
|00004da0| 73 63 61 72 64 65 64 2e | 0a 0a 20 20 20 49 6e 20 |scarded.|.. In |
|00004db0| 65 78 2c 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |ex, the |command |
|00004dc0| 69 73 20 6c 6f 61 64 65 | 64 20 69 6e 74 6f 20 27 |is loade|d into '|
|00004dd0| 61 27 20 61 6e 64 20 74 | 68 65 6e 20 65 78 65 63 |a' and t|hen exec|
|00004de0| 75 74 65 64 2e 20 20 54 | 68 65 20 63 6f 6d 6d 61 |uted. T|he comma|
|00004df0| 6e 64 0a 20 20 20 73 75 | 62 73 65 71 75 65 6e 74 |nd. su|bsequent|
|00004e00| 20 74 6f 20 74 68 65 20 | 27 76 69 73 75 61 6c 27 | to the |'visual'|
|00004e10| 20 69 73 20 28 68 69 73 | 74 6f 72 69 63 61 6c 6c | is (his|toricall|
|00004e20| 79 2c 20 73 69 6c 65 6e | 74 6c 79 29 20 64 69 73 |y, silen|tly) dis|
|00004e30| 63 61 72 64 65 64 2e 20 | 20 54 68 65 0a 20 20 20 |carded. | The. |
|00004e40| 66 69 72 73 74 20 73 65 | 74 20 63 6f 6d 6d 61 6e |first se|t comman|
|00004e50| 64 20 69 73 20 6f 75 74 | 70 75 74 20 62 79 20 65 |d is out|put by e|
|00004e60| 78 2c 20 61 6c 74 68 6f | 75 67 68 20 72 65 66 72 |x, altho|ugh refr|
|00004e70| 65 73 68 69 6e 67 20 74 | 68 65 20 73 63 72 65 65 |eshing t|he scree|
|00004e80| 6e 20 75 73 75 61 6c 6c | 79 0a 20 20 20 63 61 75 |n usuall|y. cau|
|00004e90| 73 65 73 20 69 74 20 6e | 6f 74 20 74 6f 20 62 65 |ses it n|ot to be|
|00004ea0| 20 73 65 65 6e 2e 0a 0a | 3d 2d 3d 2d 3d 2d 3d 2d | seen...|=-=-=-=-|
|00004eb0| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00004ec0| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00004ed0| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00004ee0| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|00004ef0| 3d 0a 35 3a 20 45 78 65 | 63 75 74 61 62 6c 65 20 |=.5: Exe|cutable |
|00004f00| 62 75 66 66 65 72 73 20 | 69 6e 73 69 64 65 20 6f |buffers |inside o|
|00004f10| 66 20 6d 61 70 20 63 6f | 6d 6d 61 6e 64 73 20 61 |f map co|mmands a|
|00004f20| 72 65 20 65 78 70 61 6e | 64 65 64 20 6e 6f 72 6d |re expan|ded norm|
|00004f30| 61 6c 6c 79 2e 0a 20 20 | 20 4d 61 70 73 20 69 6e |ally.. | Maps in|
|00004f40| 73 69 64 65 20 6f 66 20 | 65 78 65 63 75 74 61 62 |side of |executab|
|00004f50| 6c 65 20 62 75 66 66 65 | 72 73 20 61 72 65 20 65 |le buffe|rs are e|
|00004f60| 78 70 61 6e 64 65 64 20 | 6e 6f 72 6d 61 6c 6c 79 |xpanded |normally|
|00004f70| 2e 0a 0a 20 20 20 42 75 | 66 66 65 72 73 20 69 6e |... Bu|ffers in|
|00004f80| 73 69 64 65 20 6f 66 20 | 6d 61 70 20 63 6f 6d 6d |side of |map comm|
|00004f90| 61 6e 64 73 3a 0a 0a 3d | 3d 3d 20 20 20 74 65 73 |ands:..=|== tes|
|00004fa0| 74 20 66 69 6c 65 20 20 | 20 3d 3d 3d 0a 6c 69 6e |t file | ===.lin|
|00004fb0| 65 20 31 20 66 6f 6f 20 | 62 61 72 20 62 61 7a 0a |e 1 foo |bar baz.|
|00004fc0| 6c 69 6e 65 20 32 20 66 | 6f 6f 20 62 61 72 20 62 |line 2 f|oo bar b|
|00004fd0| 61 7a 0a 6c 69 6e 65 20 | 33 20 66 6f 6f 20 62 61 |az.line |3 foo ba|
|00004fe0| 72 20 62 61 7a 0a 63 77 | 52 45 50 4c 41 43 45 20 |r baz.cw|REPLACE |
|00004ff0| 42 59 20 41 5e 5b 0a 3d | 3d 3d 20 65 6e 64 20 74 |BY A^[.=|== end t|
|00005000| 65 73 74 20 66 69 6c 65 | 20 3d 3d 3d 0a 0a 34 47 |est file| ===..4G|
|00005010| 22 61 79 24 3a 6d 61 70 | 20 78 20 40 61 0a 31 47 |"ay$:map| x @a.1G|
|00005020| 78 0a 0a 20 20 20 54 68 | 65 20 6f 75 74 70 75 74 |x.. Th|e output|
|00005030| 20 73 68 6f 75 6c 64 20 | 62 65 3a 0a 0a 3d 3d 3d | should |be:..===|
|00005040| 20 20 20 6f 75 74 70 75 | 74 20 66 69 6c 65 20 20 | outpu|t file |
|00005050| 20 3d 3d 3d 0a 52 45 50 | 4c 41 43 45 20 42 59 20 | ===.REP|LACE BY |
|00005060| 41 20 31 20 66 6f 6f 20 | 62 61 72 20 62 61 7a 0a |A 1 foo |bar baz.|
|00005070| 6c 69 6e 65 20 32 20 66 | 6f 6f 20 62 61 72 20 62 |line 2 f|oo bar b|
|00005080| 61 7a 0a 6c 69 6e 65 20 | 33 20 66 6f 6f 20 62 61 |az.line |3 foo ba|
|00005090| 72 20 62 61 7a 0a 63 77 | 52 45 50 4c 41 43 45 20 |r baz.cw|REPLACE |
|000050a0| 42 59 20 41 5e 5b 0a 3d | 3d 3d 20 65 6e 64 20 6f |BY A^[.=|== end o|
|000050b0| 75 74 70 75 74 20 66 69 | 6c 65 20 3d 3d 3d 0a 0a |utput fi|le ===..|
|000050c0| 20 20 20 4d 61 70 73 20 | 63 6f 6d 6d 61 6e 64 73 | Maps |commands|
|000050d0| 20 69 6e 73 69 64 65 20 | 6f 66 20 65 78 65 63 75 | inside |of execu|
|000050e0| 74 61 62 6c 65 20 62 75 | 66 66 65 72 73 3a 0a 0a |table bu|ffers:..|
|000050f0| 3d 3d 3d 20 20 20 74 65 | 73 74 20 66 69 6c 65 20 |=== te|st file |
|00005100| 20 20 3d 3d 3d 0a 6c 69 | 6e 65 20 31 20 66 6f 6f | ===.li|ne 1 foo|
|00005110| 20 62 61 72 20 62 61 7a | 0a 6c 69 6e 65 20 32 20 | bar baz|.line 2 |
|00005120| 66 6f 6f 20 62 61 72 20 | 62 61 7a 0a 6c 69 6e 65 |foo bar |baz.line|
|00005130| 20 33 20 66 6f 6f 20 62 | 61 72 20 62 61 7a 0a 58 | 3 foo b|ar baz.X|
|00005140| 0a 3d 3d 3d 20 65 6e 64 | 20 74 65 73 74 20 66 69 |.=== end| test fi|
|00005150| 6c 65 20 3d 3d 3d 0a 0a | 3a 6d 61 70 20 58 20 63 |le ===..|:map X c|
|00005160| 77 52 45 50 4c 41 43 45 | 20 42 59 20 58 4d 41 50 |wREPLACE| BY XMAP|
|00005170| 5e 5b 0a 34 47 22 61 79 | 24 31 47 40 61 0a 0a 20 |^[.4G"ay|$1G@a.. |
|00005180| 20 20 54 68 65 20 6f 75 | 74 70 75 74 20 73 68 6f | The ou|tput sho|
|00005190| 75 6c 64 20 62 65 3a 0a | 0a 3d 3d 3d 20 20 20 6f |uld be:.|.=== o|
|000051a0| 75 74 70 75 74 20 66 69 | 6c 65 20 20 20 3d 3d 3d |utput fi|le ===|
|000051b0| 0a 52 45 50 4c 41 43 45 | 20 42 59 20 58 4d 41 50 |.REPLACE| BY XMAP|
|000051c0| 20 31 20 66 6f 6f 20 62 | 61 72 20 62 61 7a 0a 6c | 1 foo b|ar baz.l|
|000051d0| 69 6e 65 20 32 20 66 6f | 6f 20 62 61 72 20 62 61 |ine 2 fo|o bar ba|
|000051e0| 7a 0a 6c 69 6e 65 20 33 | 20 66 6f 6f 20 62 61 72 |z.line 3| foo bar|
|000051f0| 20 62 61 7a 0a 58 0a 3d | 3d 3d 20 65 6e 64 20 6f | baz.X.=|== end o|
|00005200| 75 74 70 75 74 20 66 69 | 6c 65 20 3d 3d 3d 0a 0a |utput fi|le ===..|
|00005210| 20 20 20 48 65 72 65 27 | 73 20 61 20 74 65 73 74 | Here'|s a test|
|00005220| 20 74 68 61 74 20 64 6f | 65 73 20 62 6f 74 68 2c | that do|es both,|
|00005230| 20 72 65 70 65 61 74 65 | 64 6c 79 2e 0a 0a 3d 3d | repeate|dly...==|
|00005240| 3d 20 20 20 74 65 73 74 | 20 66 69 6c 65 20 20 20 |= test| file |
|00005250| 3d 3d 3d 0a 6c 69 6e 65 | 20 31 20 66 6f 6f 20 62 |===.line| 1 foo b|
|00005260| 61 72 20 62 61 7a 0a 6c | 69 6e 65 20 32 20 66 6f |ar baz.l|ine 2 fo|
|00005270| 6f 20 62 61 72 20 62 61 | 7a 0a 6c 69 6e 65 20 33 |o bar ba|z.line 3|
|00005280| 20 66 6f 6f 20 62 61 72 | 20 62 61 7a 0a 58 0a 59 | foo bar| baz.X.Y|
|00005290| 0a 63 77 52 45 50 4c 41 | 43 45 44 20 42 59 20 43 |.cwREPLA|CED BY C|
|000052a0| 5e 5b 0a 62 6c 61 6e 6b | 20 6c 69 6e 65 0a 3d 3d |^[.blank| line.==|
|000052b0| 3d 20 65 6e 64 20 74 65 | 73 74 20 66 69 6c 65 20 |= end te|st file |
|000052c0| 3d 3d 3d 0a 0a 3a 6d 61 | 70 20 78 20 40 61 0a 34 |===..:ma|p x @a.4|
|000052d0| 47 22 61 79 24 0a 3a 6d | 61 70 20 58 20 40 62 0a |G"ay$.:m|ap X @b.|
|000052e0| 35 47 22 62 79 24 0a 3a | 6d 61 70 20 59 20 40 63 |5G"by$.:|map Y @c|
|000052f0| 0a 36 47 22 63 79 24 0a | 31 47 78 0a 0a 20 20 20 |.6G"cy$.|1Gx.. |
|00005300| 54 68 65 20 6f 75 74 70 | 75 74 20 73 68 6f 75 6c |The outp|ut shoul|
|00005310| 64 20 62 65 3a 0a 0a 3d | 3d 3d 20 20 20 6f 75 74 |d be:..=|== out|
|00005320| 70 75 74 20 66 69 6c 65 | 20 20 20 3d 3d 3d 0a 52 |put file| ===.R|
|00005330| 45 50 4c 41 43 45 44 20 | 42 59 20 43 20 31 20 66 |EPLACED |BY C 1 f|
|00005340| 6f 6f 20 62 61 72 20 62 | 61 7a 0a 6c 69 6e 65 20 |oo bar b|az.line |
|00005350| 32 20 66 6f 6f 20 62 61 | 72 20 62 61 7a 0a 6c 69 |2 foo ba|r baz.li|
|00005360| 6e 65 20 33 20 66 6f 6f | 20 62 61 72 20 62 61 7a |ne 3 foo| bar baz|
|00005370| 0a 58 0a 59 0a 63 77 52 | 45 50 4c 41 43 45 44 20 |.X.Y.cwR|EPLACED |
|00005380| 42 59 20 43 5e 5b 0a 62 | 6c 61 6e 6b 20 6c 69 6e |BY C^[.b|lank lin|
|00005390| 65 0a 3d 3d 3d 20 65 6e | 64 20 6f 75 74 70 75 74 |e.=== en|d output|
|000053a0| 20 66 69 6c 65 20 3d 3d | 3d 0a 0a 3d 2d 3d 2d 3d | file ==|=..=-=-=|
|000053b0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|000053c0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|000053d0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|000053e0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
|000053f0| 2d 3d 2d 3d 0a 36 3a 20 | 49 66 20 61 6e 20 65 72 |-=-=.6: |If an er|
|00005400| 72 6f 72 20 69 73 20 65 | 6e 63 6f 75 6e 74 65 72 |ror is e|ncounter|
|00005410| 65 64 20 77 68 69 6c 65 | 20 65 78 65 63 75 74 69 |ed while| executi|
|00005420| 6e 67 20 61 20 6d 61 70 | 70 65 64 20 63 6f 6d 6d |ng a map|ped comm|
|00005430| 61 6e 64 20 6f 72 0a 20 | 20 20 61 20 62 75 66 66 |and or. | a buff|
|00005440| 65 72 2c 20 74 68 65 20 | 72 65 73 74 20 6f 66 20 |er, the |rest of |
|00005450| 74 68 65 20 6d 61 70 70 | 65 64 20 63 6f 6d 6d 61 |the mapp|ed comma|
|00005460| 6e 64 2f 62 75 66 66 65 | 72 20 69 73 20 64 69 73 |nd/buffe|r is dis|
|00005470| 63 61 72 64 65 64 2e 20 | 20 4e 6f 0a 20 20 20 75 |carded. | No. u|
|00005480| 73 65 72 20 69 6e 70 75 | 74 20 63 68 61 72 61 63 |ser inpu|t charac|
|00005490| 74 65 72 73 20 61 72 65 | 20 64 69 73 63 61 72 64 |ters are| discard|
|000054a0| 65 64 2e 0a 0a 3d 3d 3d | 20 20 20 74 65 73 74 20 |ed...===| test |
|000054b0| 66 69 6c 65 20 20 20 3d | 3d 3d 0a 6c 69 6e 65 20 |file =|==.line |
|000054c0| 31 20 66 6f 6f 20 62 61 | 72 20 62 61 7a 0a 6c 69 |1 foo ba|r baz.li|
|000054d0| 6e 65 20 32 20 66 6f 6f | 20 62 61 72 20 62 61 7a |ne 2 foo| bar baz|
|000054e0| 0a 6c 69 6e 65 20 33 20 | 66 6f 6f 20 62 61 72 20 |.line 3 |foo bar |
|000054f0| 62 61 7a 0a 3a 6d 61 70 | 20 3d 20 31 30 47 63 77 |baz.:map| = 10Gcw|
|00005500| 52 45 50 4c 41 43 4d 45 | 4e 54 5e 56 5e 5b 5e 5b |REPLACME|NT^V^[^[|
|00005510| 0a 3d 3d 3d 20 65 6e 64 | 20 74 65 73 74 20 66 69 |.=== end| test fi|
|00005520| 6c 65 20 3d 3d 3d 0a 0a | 20 20 20 54 68 65 20 61 |le ===..| The a|
|00005530| 62 6f 76 65 20 6d 61 70 | 70 69 6e 67 20 66 61 69 |bove map|ping fai|
|00005540| 6c 73 2c 20 68 6f 77 65 | 76 65 72 2c 20 69 66 20 |ls, howe|ver, if |
|00005550| 74 68 65 20 31 30 47 20 | 69 73 20 63 68 61 6e 67 |the 10G |is chang|
|00005560| 65 64 20 74 6f 20 31 2c | 20 32 2c 0a 20 20 20 6f |ed to 1,| 2,. o|
|00005570| 72 20 33 47 2c 20 69 74 | 20 77 69 6c 6c 20 73 75 |r 3G, it| will su|
|00005580| 63 63 65 65 64 2e 0a 0a | 3d 2d 3d 2d 3d 2d 3d 2d |cceed...|=-=-=-=-|
|00005590| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|000055a0| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|000055b0| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|000055c0| 3d 2d 3d 2d 3d 2d 3d 2d | 3d 2d 3d 2d 3d 2d 3d 2d |=-=-=-=-|=-=-=-=-|
|000055d0| 3d 0a 75 72 65 73 2e 0a | 0a 4d 41 52 4b 09 49 6e |=.ures..|.MARK.In|
|000055e0| 20 6e 76 69 2f 6d 61 72 | 6b 2e 68 2e 20 20 41 20 | nvi/mar|k.h. A |
|000055f0| 63 75 72 73 6f 72 20 70 | 6f 73 69 74 69 6f 6e 2c |cursor p|osition,|
|00005600| 6e 76 69 2e 31 2e 30 33 | 2f 64 6f 63 73 2f 67 64 |nvi.1.03|/docs/gd|
|00005610| 62 2e 73 63 72 69 70 74 | 00 00 00 00 00 00 00 00 |b.script|........|
|00005620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005660| 00 00 00 00 31 30 30 34 | 34 34 00 00 30 30 33 32 |....1004|44..0032|
|00005670| 37 36 00 00 30 30 30 30 | 31 32 00 00 30 30 30 30 |76..0000|12..0000|
|00005680| 30 30 30 33 33 30 35 00 | 30 35 34 35 32 33 36 34 |0003305.|05452364|
|00005690| 31 37 33 00 30 31 31 34 | 31 33 00 20 30 00 00 00 |173.0114|13. 0...|
|000056a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005700| 00 20 20 36 33 32 36 00 | 00 00 00 00 00 00 00 00 |. 6326.|........|
|00005710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005750| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00005760| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00005770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005800| 23 09 40 28 23 29 67 64 | 62 2e 73 63 72 69 70 74 |#.@(#)gd|b.script|
|00005810| 09 38 2e 32 20 28 42 65 | 72 6b 65 6c 65 79 29 20 |.8.2 (Be|rkeley) |
|00005820| 39 2f 32 39 2f 39 33 0a | 0a 23 20 64 69 73 70 6c |9/29/93.|.# displ|
|00005830| 61 79 20 74 68 65 20 53 | 56 49 20 73 63 72 65 65 |ay the S|VI scree|
|00005840| 6e 20 6d 61 70 0a 23 20 | 75 73 61 67 65 20 64 6d |n map.# |usage dm|
|00005850| 61 70 28 73 70 29 0a 64 | 65 66 69 6e 65 09 64 6d |ap(sp).d|efine.dm|
|00005860| 61 70 0a 09 73 65 74 20 | 24 68 20 3d 20 28 28 53 |ap..set |$h = ((S|
|00005870| 56 49 5f 50 52 49 56 41 | 54 45 20 2a 29 24 61 72 |VI_PRIVA|TE *)$ar|
|00005880| 67 30 2d 3e 73 76 69 5f | 70 72 69 76 61 74 65 29 |g0->svi_|private)|
|00005890| 2d 3e 68 5f 73 6d 61 70 | 0a 09 73 65 74 20 24 74 |->h_smap|..set $t|
|000058a0| 20 3d 20 28 28 53 56 49 | 5f 50 52 49 56 41 54 45 | = ((SVI|_PRIVATE|
|000058b0| 20 2a 29 24 61 72 67 30 | 2d 3e 73 76 69 5f 70 72 | *)$arg0|->svi_pr|
|000058c0| 69 76 61 74 65 29 2d 3e | 74 5f 73 6d 61 70 0a 09 |ivate)->|t_smap..|
|000058d0| 77 68 69 6c 65 20 28 24 | 68 20 3c 3d 20 24 74 29 |while ($|h <= $t)|
|000058e0| 0a 09 09 70 72 69 6e 74 | 66 20 22 6c 6e 6f 3a 20 |...print|f "lno: |
|000058f0| 25 64 3b 20 6f 66 66 20 | 25 64 20 22 2c 20 28 69 |%d; off |%d ", (i|
|00005900| 6e 74 29 24 68 2d 3e 6c | 6e 6f 2c 20 28 69 6e 74 |nt)$h->l|no, (int|
|00005910| 29 24 68 2d 3e 6f 66 66 | 0a 09 09 69 66 20 28 24 |)$h->off|...if ($|
|00005920| 68 2d 3e 63 5f 65 63 73 | 69 7a 65 20 3d 3d 20 30 |h->c_ecs|ize == 0|
|00005930| 29 0a 09 09 09 70 72 69 | 6e 74 66 20 22 66 6c 75 |)....pri|ntf "flu|
|00005940| 73 68 65 64 5c 6e 22 0a | 09 09 65 6c 73 65 0a 09 |shed\n".|..else..|
|00005950| 09 09 70 72 69 6e 74 66 | 20 22 5c 6e 5c 74 73 62 |..printf| "\n\tsb|
|00005960| 6f 66 66 20 25 64 3b 20 | 73 63 6f 66 66 20 25 64 |off %d; |scoff %d|
|00005970| 5c 6e 22 2c 20 5c 0a 09 | 09 09 20 20 20 20 28 69 |\n", \..|.. (i|
|00005980| 6e 74 29 24 68 2d 3e 63 | 5f 73 62 6f 66 66 2c 20 |nt)$h->c|_sboff, |
|00005990| 28 69 6e 74 29 24 68 2d | 3e 63 5f 73 63 6f 66 66 |(int)$h-|>c_scoff|
|000059a0| 0a 09 09 09 70 72 69 6e | 74 66 20 22 5c 74 65 62 |....prin|tf "\teb|
|000059b0| 6f 66 66 20 25 64 3b 20 | 65 63 6c 65 6e 20 25 64 |off %d; |eclen %d|
|000059c0| 3b 20 65 63 73 69 7a 65 | 20 25 64 5c 6e 22 2c 20 |; ecsize| %d\n", |
|000059d0| 5c 0a 09 09 09 20 20 20 | 20 28 69 6e 74 29 24 68 |\.... | (int)$h|
|000059e0| 2d 3e 63 5f 65 62 6f 66 | 66 2c 20 28 69 6e 74 29 |->c_ebof|f, (int)|
|000059f0| 24 68 2d 3e 63 5f 65 63 | 6c 65 6e 2c 20 5c 0a 09 |$h->c_ec|len, \..|
|00005a00| 09 09 20 20 20 20 28 69 | 6e 74 29 24 68 2d 3e 63 |.. (i|nt)$h->c|
|00005a10| 5f 65 63 73 69 7a 65 0a | 09 09 65 6e 64 0a 09 09 |_ecsize.|..end...|
|00005a20| 73 65 74 20 24 68 20 3d | 20 24 68 20 2b 20 31 0a |set $h =| $h + 1.|
|00005a30| 09 65 6e 64 0a 65 6e 64 | 0a 0a 23 20 64 69 73 70 |.end.end|..# disp|
|00005a40| 6c 61 79 20 74 68 65 20 | 74 61 69 6c 20 6f 66 20 |lay the |tail of |
|00005a50| 74 68 65 20 53 56 49 20 | 73 63 72 65 65 6e 20 6d |the SVI |screen m|
|00005a60| 61 70 0a 64 65 66 69 6e | 65 09 74 6d 61 70 0a 09 |ap.defin|e.tmap..|
|00005a70| 73 65 74 20 24 68 20 3d | 20 28 28 53 56 49 5f 50 |set $h =| ((SVI_P|
|00005a80| 52 49 56 41 54 45 20 2a | 29 24 61 72 67 30 2d 3e |RIVATE *|)$arg0->|
|00005a90| 73 76 69 5f 70 72 69 76 | 61 74 65 29 2d 3e 68 5f |svi_priv|ate)->h_|
|00005aa0| 73 6d 61 70 0a 09 73 65 | 74 20 24 74 20 3d 20 28 |smap..se|t $t = (|
|00005ab0| 28 53 56 49 5f 50 52 49 | 56 41 54 45 20 2a 29 24 |(SVI_PRI|VATE *)$|
|00005ac0| 61 72 67 30 2d 3e 73 76 | 69 5f 70 72 69 76 61 74 |arg0->sv|i_privat|
|00005ad0| 65 29 2d 3e 74 5f 73 6d | 61 70 0a 09 77 68 69 6c |e)->t_sm|ap..whil|
|00005ae0| 65 20 28 24 74 20 3e 3d | 20 24 68 29 0a 09 09 70 |e ($t >=| $h)...p|
|00005af0| 72 69 6e 74 66 20 22 6c | 6e 6f 3a 20 25 64 3b 20 |rintf "l|no: %d; |
|00005b00| 6f 66 66 20 25 64 20 22 | 2c 20 28 69 6e 74 29 24 |off %d "|, (int)$|
|00005b10| 74 2d 3e 6c 6e 6f 2c 20 | 28 69 6e 74 29 24 74 2d |t->lno, |(int)$t-|
|00005b20| 3e 6f 66 66 0a 09 09 69 | 66 20 28 24 74 2d 3e 63 |>off...i|f ($t->c|
|00005b30| 5f 65 63 73 69 7a 65 20 | 3d 3d 20 30 29 0a 09 09 |_ecsize |== 0)...|
|00005b40| 09 70 72 69 6e 74 66 20 | 22 66 6c 75 73 68 65 64 |.printf |"flushed|
|00005b50| 5c 6e 22 0a 09 09 65 6c | 73 65 0a 09 09 09 70 72 |\n"...el|se....pr|
|00005b60| 69 6e 74 66 20 22 5c 6e | 5c 74 73 62 6f 66 66 20 |intf "\n|\tsboff |
|00005b70| 25 64 3b 20 73 63 6f 66 | 66 20 25 64 5c 6e 22 2c |%d; scof|f %d\n",|
|00005b80| 20 5c 0a 09 09 09 20 20 | 20 20 28 69 6e 74 29 24 | \.... | (int)$|
|00005b90| 74 2d 3e 63 5f 73 62 6f | 66 66 2c 20 28 69 6e 74 |t->c_sbo|ff, (int|
|00005ba0| 29 24 74 2d 3e 63 5f 73 | 63 6f 66 66 0a 09 09 09 |)$t->c_s|coff....|
|00005bb0| 70 72 69 6e 74 66 20 22 | 5c 74 65 62 6f 66 66 20 |printf "|\teboff |
|00005bc0| 25 64 3b 20 65 63 6c 65 | 6e 20 25 64 3b 20 65 63 |%d; ecle|n %d; ec|
|00005bd0| 73 69 7a 65 20 25 64 5c | 6e 22 2c 20 5c 0a 09 09 |size %d\|n", \...|
|00005be0| 09 20 20 20 20 28 69 6e | 74 29 24 74 2d 3e 63 5f |. (in|t)$t->c_|
|00005bf0| 65 62 6f 66 66 2c 20 28 | 69 6e 74 29 24 74 2d 3e |eboff, (|int)$t->|
|00005c00| 63 5f 65 63 6c 65 6e 2c | 20 5c 0a 09 09 09 20 20 |c_eclen,| \.... |
|00005c10| 20 20 28 69 6e 74 29 24 | 74 2d 3e 63 5f 65 63 73 | (int)$|t->c_ecs|
|00005c20| 69 7a 65 0a 09 09 65 6e | 64 0a 09 09 73 65 74 20 |ize...en|d...set |
|00005c30| 24 74 20 3d 20 24 74 20 | 2d 20 31 0a 09 65 6e 64 |$t = $t |- 1..end|
|00005c40| 0a 65 6e 64 0a 0a 23 20 | 64 69 73 70 6c 61 79 20 |.end..# |display |
|00005c50| 74 68 65 20 53 56 49 20 | 70 72 69 76 61 74 65 20 |the SVI |private |
|00005c60| 73 74 72 75 63 74 75 72 | 65 0a 64 65 66 69 6e 65 |structur|e.define|
|00005c70| 09 73 76 70 0a 09 70 72 | 69 6e 74 20 2a 28 28 53 |.svp..pr|int *((S|
|00005c80| 56 49 5f 50 52 49 56 41 | 54 45 20 2a 29 73 70 2d |VI_PRIVA|TE *)sp-|
|00005c90| 3e 73 76 69 5f 70 72 69 | 76 61 74 65 29 0a 65 6e |>svi_pri|vate).en|
|00005ca0| 64 0a 0a 23 20 64 69 73 | 70 6c 61 79 20 74 68 65 |d..# dis|play the|
|00005cb0| 20 6d 61 72 6b 73 0a 64 | 65 66 69 6e 65 09 6d 61 | marks.d|efine.ma|
|00005cc0| 72 6b 70 0a 09 73 65 74 | 20 24 68 20 3d 20 73 70 |rkp..set| $h = sp|
|00005cd0| 2d 3e 65 70 2d 3e 6d 61 | 72 6b 73 2e 6e 65 78 74 |->ep->ma|rks.next|
|00005ce0| 0a 09 73 65 74 20 24 74 | 20 3d 20 26 73 70 2d 3e |..set $t| = &sp->|
|00005cf0| 65 70 2d 3e 6d 61 72 6b | 73 0a 09 77 68 69 6c 65 |ep->mark|s..while|
|00005d00| 20 28 24 68 20 21 3d 20 | 30 20 26 26 20 24 68 20 | ($h != |0 && $h |
|00005d10| 21 3d 20 24 74 29 0a 09 | 09 70 72 69 6e 74 66 20 |!= $t)..|.printf |
|00005d20| 22 6b 65 79 20 25 63 20 | 6c 6e 6f 3a 20 25 64 20 |"key %c |lno: %d |
|00005d30| 63 6e 6f 3a 20 25 64 20 | 66 6c 61 67 73 3a 20 25 |cno: %d |flags: %|
|00005d40| 78 5c 6e 22 2c 20 5c 0a | 09 09 20 20 20 20 28 28 |x\n", \.|.. ((|
|00005d50| 4d 41 52 4b 20 2a 29 24 | 68 29 2d 3e 6e 61 6d 65 |MARK *)$|h)->name|
|00005d60| 2c 20 28 28 4d 41 52 4b | 20 2a 29 24 68 29 2d 3e |, ((MARK| *)$h)->|
|00005d70| 6c 6e 6f 2c 20 5c 0a 09 | 09 20 20 20 20 28 28 4d |lno, \..|. ((M|
|00005d80| 41 52 4b 20 2a 29 24 68 | 29 2d 3e 63 6e 6f 2c 20 |ARK *)$h|)->cno, |
|00005d90| 28 28 4d 41 52 4b 20 2a | 29 24 68 29 2d 3e 66 6c |((MARK *|)$h)->fl|
|00005da0| 61 67 73 0a 09 09 73 65 | 74 20 24 68 20 3d 20 28 |ags...se|t $h = (|
|00005db0| 28 4d 41 52 4b 20 2a 29 | 24 68 29 2d 3e 6e 65 78 |(MARK *)|$h)->nex|
|00005dc0| 74 0a 09 65 6e 64 0a 65 | 6e 64 0a 0a 23 20 64 69 |t..end.e|nd..# di|
|00005dd0| 73 70 6c 61 79 20 74 68 | 65 20 74 61 67 73 0a 64 |splay th|e tags.d|
|00005de0| 65 66 69 6e 65 09 74 61 | 67 70 0a 09 73 65 74 20 |efine.ta|gp..set |
|00005df0| 24 68 20 3d 20 73 70 2d | 3e 74 61 67 68 64 72 2e |$h = sp-|>taghdr.|
|00005e00| 6e 65 78 74 0a 09 73 65 | 74 20 24 74 20 3d 20 26 |next..se|t $t = &|
|00005e10| 73 70 2d 3e 74 61 67 68 | 64 72 0a 09 77 68 69 6c |sp->tagh|dr..whil|
|00005e20| 65 20 28 24 68 20 21 3d | 20 30 20 26 26 20 24 68 |e ($h !=| 0 && $h|
|00005e30| 20 21 3d 20 24 74 29 0a | 09 09 70 72 69 6e 74 66 | != $t).|..printf|
|00005e40| 20 22 74 61 67 3a 20 25 | 73 20 6c 6e 6f 20 25 64 | "tag: %|s lno %d|
|00005e50| 20 63 6e 6f 20 25 64 5c | 6e 22 2c 20 28 28 54 41 | cno %d\|n", ((TA|
|00005e60| 47 20 2a 29 24 68 29 2d | 3e 66 72 70 2d 3e 66 6e |G *)$h)-|>frp->fn|
|00005e70| 61 6d 65 2c 20 5c 0a 09 | 09 20 20 20 20 28 28 54 |ame, \..|. ((T|
|00005e80| 41 47 20 2a 29 24 68 29 | 2d 3e 6c 6e 6f 2c 20 28 |AG *)$h)|->lno, (|
|00005e90| 28 54 41 47 20 2a 29 24 | 68 29 2d 3e 63 6e 6f 0a |(TAG *)$|h)->cno.|
|00005ea0| 09 09 73 65 74 20 24 68 | 3d 20 28 28 54 41 47 20 |..set $h|= ((TAG |
|00005eb0| 2a 29 24 68 29 2d 3e 6e | 65 78 74 0a 09 65 6e 64 |*)$h)->n|ext..end|
|00005ec0| 0a 65 6e 64 0a 74 6f 20 | 72 65 74 61 69 6e 20 74 |.end.to |retain t|
|00005ed0| 68 65 20 71 75 65 75 65 | 64 20 69 6e 70 75 74 2c |he queue|d input,|
|00005ee0| 0a 6d 6f 73 74 6c 79 20 | 62 65 63 61 75 73 65 20 |.mostly |because |
|00005ef0| 69 74 27 73 20 73 69 6d | 70 6c 65 72 20 74 68 61 |it's sim|pler tha|
|00005f00| 6e 20 74 68 72 6f 77 69 | 6e 67 20 69 74 20 61 77 |n throwi|ng it aw|
|00005f10| 61 79 2e 0a 0a 48 69 73 | 74 6f 72 69 63 61 6c 6c |ay...His|toricall|
|00005f20| 79 2c 20 6e 65 69 74 68 | 65 72 20 74 68 65 20 69 |y, neith|er the i|
|00005f30| 6e 69 74 69 61 6c 20 63 | 6f 6d 6d 61 6e 64 20 6f |nitial c|ommand o|
|00005f40| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |n the co|mmand li|
|00005f50| 6e 65 20 28 74 68 65 20 | 2b 20 66 6c 61 67 29 0a |ne (the |+ flag).|
|00005f60| 6f 72 20 74 68 65 20 2b | 63 6d 64 20 61 73 73 6f |or the +|cmd asso|
|00005f70| 63 69 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ciated w|ith the |
|00005f80| 65 78 20 61 6e 64 20 65 | 64 69 74 20 63 6f 6d 6d |ex and e|dit comm|
|00005f90| 61 6e 64 73 20 77 61 73 | 20 73 75 62 6a 65 63 74 |ands was| subject|
|00005fa0| 20 74 6f 20 6d 61 70 70 | 69 6e 67 2e 0a 41 6c 73 | to mapp|ing..Als|
|00005fb0| 6f 2c 20 77 68 69 6c 65 | 20 74 68 65 20 2b 63 6d |o, while| the +cm|
|00005fc0| 64 20 61 70 70 65 61 72 | 73 20 74 6f 20 62 65 20 |d appear|s to be |
|00005fd0| 73 75 62 6a 65 63 74 20 | 74 6f 20 22 40 62 75 66 |subject |to "@buf|
|00005fe0| 66 65 72 22 20 65 78 70 | 61 6e 73 69 6f 6e 2c 20 |fer" exp|ansion, |
|00005ff0| 6f 6e 63 65 0a 65 78 70 | 61 6e 64 65 64 20 69 74 |once.exp|anded it|
|00006000| 6e 76 69 2e 31 2e 30 33 | 2f 64 6f 63 73 2f 52 45 |nvi.1.03|/docs/RE|
|00006010| 41 44 4d 45 00 00 00 00 | 00 00 00 00 00 00 00 00 |ADME....|........|
|00006020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006060| 00 00 00 00 31 30 30 34 | 34 34 00 00 30 30 33 32 |....1004|44..0032|
|00006070| 37 36 00 00 30 30 30 30 | 31 32 00 00 30 30 30 30 |76..0000|12..0000|
|00006080| 30 30 31 37 30 35 32 00 | 30 35 35 32 30 35 37 37 |0017052.|05520577|
|00006090| 34 37 37 00 30 31 31 30 | 31 35 00 20 30 00 00 00 |477.0110|15. 0...|
|000060a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006100| 00 33 37 37 37 37 37 37 | 37 31 33 30 00 00 00 00 |.3777777|7130....|
|00006110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006150| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00006160| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00006170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006200| 23 09 40 28 23 29 52 45 | 41 44 4d 45 09 38 2e 34 |#.@(#)RE|ADME.8.4|
|00006210| 32 20 28 42 65 72 6b 65 | 6c 65 79 29 20 31 2f 32 |2 (Berke|ley) 1/2|
|00006220| 33 2f 39 34 0a 0a 54 68 | 69 73 20 69 73 20 74 68 |3/94..Th|is is th|
|00006230| 65 20 52 45 41 44 4d 45 | 20 66 6f 72 20 76 65 72 |e README| for ver|
|00006240| 73 69 6f 6e 20 31 2e 30 | 33 20 6f 66 20 6e 76 69 |sion 1.0|3 of nvi|
|00006250| 2c 20 61 20 66 72 65 65 | 6c 79 20 72 65 64 69 73 |, a free|ly redis|
|00006260| 74 72 69 62 75 74 61 62 | 6c 65 0a 72 65 70 6c 61 |tributab|le.repla|
|00006270| 63 65 6d 65 6e 74 20 66 | 6f 72 20 74 68 65 20 76 |cement f|or the v|
|00006280| 69 20 61 6e 64 20 65 78 | 20 74 65 78 74 20 65 64 |i and ex| text ed|
|00006290| 69 74 6f 72 73 2e 20 20 | 49 74 20 63 61 6e 20 62 |itors. |It can b|
|000062a0| 65 20 72 65 74 72 69 65 | 76 65 64 20 76 69 61 0a |e retrie|ved via.|
|000062b0| 61 6e 6f 6e 79 6d 6f 75 | 73 20 66 74 70 20 66 72 |anonymou|s ftp fr|
|000062c0| 6f 6d 20 66 74 70 2e 75 | 75 2e 6e 65 74 2c 20 6f |om ftp.u|u.net, o|
|000062d0| 72 20 66 72 6f 6d 20 66 | 74 70 2e 63 73 2e 62 65 |r from f|tp.cs.be|
|000062e0| 72 6b 65 6c 65 79 2e 65 | 64 75 2e 20 20 49 6e 20 |rkeley.e|du. In |
|000062f0| 74 68 65 0a 6c 61 74 74 | 65 72 2c 20 69 74 20 69 |the.latt|er, it i|
|00006300| 73 20 69 6e 20 74 68 65 | 20 64 69 72 65 63 74 6f |s in the| directo|
|00006310| 72 79 20 75 63 62 2f 34 | 62 73 64 2c 20 61 6e 64 |ry ucb/4|bsd, and|
|00006320| 20 69 73 20 6e 61 6d 65 | 64 20 6e 76 69 2e 74 61 | is name|d nvi.ta|
|00006330| 72 2e 5a 2e 0a 0a 49 66 | 20 79 6f 75 20 68 61 76 |r.Z...If| you hav|
|00006340| 65 20 61 6e 79 20 71 75 | 65 73 74 69 6f 6e 73 20 |e any qu|estions |
|00006350| 6f 72 20 70 72 6f 62 6c | 65 6d 73 20 77 69 74 68 |or probl|ems with|
|00006360| 20 6e 76 69 2c 20 70 6c | 65 61 73 65 20 73 65 6e | nvi, pl|ease sen|
|00006370| 64 20 74 68 65 6d 20 74 | 6f 0a 6d 65 20 62 79 20 |d them t|o.me by |
|00006380| 65 6c 65 63 74 72 6f 6e | 69 63 20 6d 61 69 6c 20 |electron|ic mail |
|00006390| 61 74 20 6f 6e 65 20 6f | 66 20 74 68 65 20 66 6f |at one o|f the fo|
|000063a0| 6c 6c 6f 77 69 6e 67 20 | 61 64 64 72 65 73 73 65 |llowing |addresse|
|000063b0| 73 3a 0a 0a 09 75 75 6e | 65 74 21 62 6f 73 74 69 |s:...uun|et!bosti|
|000063c0| 63 0a 09 62 6f 73 74 69 | 63 40 63 73 2e 62 65 72 |c..bosti|c@cs.ber|
|000063d0| 6b 65 6c 65 79 2e 65 64 | 75 0a 0a 4b 65 69 74 68 |keley.ed|u..Keith|
|000063e0| 20 42 6f 73 74 69 63 0a | 0a 3d 2d 3d 2d 3d 2d 3d | Bostic.|.=-=-=-=|
|000063f0| 2d 3d 2d 3d 2d 3d 2d 3d | 2d 3d 2d 3d 2d 3d 2d 3d |-=-=-=-=|-=-=-=-=|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.